Uploaded image for project: 'Empire-DB'
  1. Empire-DB
  2. EMPIREDB-120

DBTableColumn checkValue(Object value) for DataType.DATETIME and DataType.DATE throws FieldIllegalValueException if the value is empty (but DBTableColumn is nullable)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: empire-db-2.2.0-incubating
    • Fix Version/s: empire-db-2.3.0
    • Component/s: Core
    • Labels:
      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).

        Attachments

          Activity

            People

            • Assignee:
              reiher Jörg Reiher
              Reporter:
              reiher Jörg Reiher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: