empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1051938 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java
Date Wed, 22 Dec 2010 15:05:01 GMT
Author: doebele
Date: Wed Dec 22 15:05:01 2010
New Revision: 1051938

URL: http://svn.apache.org/viewvc?rev=1051938&view=rev
Log:
EMPIREDB-93

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java?rev=1051938&r1=1051937&r2=1051938&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java
Wed Dec 22 15:05:01 2010
@@ -276,7 +276,7 @@ public class DBTableColumn extends DBCol
     {
         // Check for NULL
         if (isRequired() && (value == null || value.toString().length() < 1))
-            return error(DBErrors.FieldNotNull, getTitle());
+            return error(DBErrors.FieldNotNull, getName());
         // Is value valid
         switch (type)
         {
@@ -292,7 +292,7 @@ public class DBTableColumn extends DBCol
                         // OK
                     } catch (ParseException e)
                     {   // Error
-                        log.error("checkValue exception: " + e.toString() + " column=" +
getTitle() + " value=" + String.valueOf(value));
+                        log.error("checkValue exception: " + e.toString() + " column=" +
getName() + " value=" + String.valueOf(value));
                         return error(DBErrors.FieldInvalidDateFormat, getName());
                     }
                 }    
@@ -309,7 +309,7 @@ public class DBTableColumn extends DBCol
                         // thows NumberFormatException if not a number!
                     } catch (NumberFormatException nfe)
                     {
-                        log.error("checkValue exception: " + nfe.toString() + " column="
+ getTitle() + " value=" + String.valueOf(value));
+                        log.error("checkValue exception: " + nfe.toString() + " column="
+ getName() + " value=" + String.valueOf(value));
                         return error(DBErrors.FieldNotNumeric, getName());
                     }
                 }
@@ -325,7 +325,7 @@ public class DBTableColumn extends DBCol
                         // throws NumberFormatException if not an integer!
                     } catch (NumberFormatException nfe)
                     {
-                        log.error("checkValue exception: " + nfe.toString() + " column="
+ getTitle() + " value=" + String.valueOf(value));
+                        log.error("checkValue exception: " + nfe.toString() + " column="
+ getName() + " value=" + String.valueOf(value));
                         return error(DBErrors.FieldNotNumeric, getName());
                     }
                 }



Mime
View raw message