DdlUtils
  1. DdlUtils
  2. DDLUTILS-80

nativeDefault attribute for column, which is not interpreted by DdlUtils at all

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Labels:
      None
    • Environment:
      all

      Description

      A column attribute "nativeDefault" would enable a definition of a default value which is not interpreted by DdlUtils at all. The value of the attribute would be the value of the SQL DEFAULT as is.

      Example:
      <column name="timestamp" type="TIMESTAMP" nativeDefault="CURRENT_TIMESTAMP"/>
      would result in SQL code:
      ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP

      With the existing column attribute default it would result in (which is not desired):
      ts TIMESTAMP DEFAULT 'CURRENT_TIMESTAMP'

      Comment from Tom:
      In general the default value is expected to be a string value that can
      be converted to the Java type corresponding to the JDBC type (as
      defined by the JDBC spec).

        Issue Links

          Activity

          Thomas Dudziak made changes -
          Fix Version/s 1.3 [ 12313497 ]
          Fix Version/s 1.2 [ 12312767 ]
          Thomas Dudziak made changes -
          Fix Version/s 1.2 [ 12312767 ]
          Fix Version/s 1.1 [ 12311984 ]
          Thomas Dudziak made changes -
          Link This issue is duplicated by DDLUTILS-86 [ DDLUTILS-86 ]
          Thomas Dudziak made changes -
          Component/s Core (No specific database) [ 12310804 ]
          Thomas Dudziak made changes -
          Field Original Value New Value
          Fix Version/s 1.1 [ 12311984 ]
          Joachim Wackerow created issue -

            People

            • Assignee:
              Thomas Dudziak
              Reporter:
              Joachim Wackerow
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development