Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
empire-db-2.2.0-incubating
-
None
Description
DBTableColumn's method checkValue() tries to parse a given empty String to a DATE/DATETIME, if DBTableColumn is of type DATE or DATETIME.
This leads to a FieldIllegalValueException, even if the DBTableColumn is nullable.
This behaviour isn't consistent with the behaviour for all other data types: If the DBTableColumn's type is DECIMAL, FLOAT, and INTEGER, then the method checks for String length > 0 before trying to parse the value (and therefore excepts an empty string as a valid value for a nullable field).