empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Reiher (Resolved) (JIRA) <empire-db-...@incubator.apache.org>
Subject [jira] [Resolved] (EMPIREDB-120) DBTableColumn checkValue(Object value) for DataType.DATETIME and DataType.DATE throws FieldIllegalValueException if the value is empty (but DBTableColumn is nullable)
Date Wed, 02 Nov 2011 16:51:32 GMT

     [ https://issues.apache.org/jira/browse/EMPIREDB-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jörg Reiher resolved EMPIREDB-120.
----------------------------------

    Resolution: Fixed

fixed
                
> DBTableColumn checkValue(Object value) for DataType.DATETIME and DataType.DATE throws
FieldIllegalValueException if the value is empty (but DBTableColumn is nullable)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: EMPIREDB-120
>                 URL: https://issues.apache.org/jira/browse/EMPIREDB-120
>             Project: Empire-DB
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: empire-db-2.2.0-incubating
>            Reporter: Jörg Reiher
>            Assignee: Jörg Reiher
>            Priority: Minor
>             Fix For: empire-db-2.2.1-incubating
>
>
> 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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message