Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6959

Require the Standard SET keyword in the syntax for changing the cycle behavior of identity columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.14.1.0
    • 10.14.1.0
    • SQL
    • None
    • Normal

    Description

      The correct syntax for changing the cycling behavior of an auto-increment column is...

      ALTER TABLE ALTER COLUMN $columnName SET [NO] CYCLE

      ...according to the 2016 SQL Standard, part 2, sections 11.20 (<alter identity column specification) and 11.72 (<sequence generator definition>). This is also the syntax used by DB2 (see https://www.ibm.com/support/knowledgecenter/en/SSEPEK_10.0.0/sqlref/src/tpc/db2z_sql_altertable.html). Right now Derby does not accept the required SET keyword. We should bring Derby into compliance with the Standard. I will attach a patch to do this.

      Attachments

        1. rrefsqlj81859.html
          20 kB
          Richard N. Hillegas
        2. derby-6959-02-aa-setCycleDocs.diff
          1 kB
          Richard N. Hillegas
        3. derby-6959-01-ab-requireSETkeyword.diff
          9 kB
          Richard N. Hillegas
        4. derby-6959-01-aa-requireSETkeyword.diff
          9 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: