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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.14.1.0
    • Fix Version/s: 10.14.1.0
    • Component/s: SQL
    • Labels:
      None
    • Urgency:
      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. derby-6959-01-aa-requireSETkeyword.diff
          9 kB
          Rick Hillegas
        2. derby-6959-01-ab-requireSETkeyword.diff
          9 kB
          Rick Hillegas
        3. derby-6959-02-aa-setCycleDocs.diff
          1 kB
          Rick Hillegas
        4. rrefsqlj81859.html
          20 kB
          Rick Hillegas

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Rick Hillegas
                Reporter:
                rhillegas Rick Hillegas
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: