You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by do...@apache.org on 2010/12/22 16:05:01 UTC
svn commit: r1051938 -
/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTableColumn.java
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());
}
}