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

ALTER TABLE ... ADD COLUMN cannot add identity columns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.4.2.0
    • 10.12.1.1
    • SQL
    • Normal

    Description

      ALTER TABLE .. ADD COLUMN cannot be used to add an identity column. There is code to handle identity columns, but it is disabled in the parser. See this thread on derby-user:
      http://mail-archives.apache.org/mod_mbox/db-derby-user/200708.mbox/%3C46C5DAA9.8080507@sbcglobal.net%3E

      The code was disabled for DB2 compatibility. Since DB2 compatibility is not a goal for Derby, we should see if we could re-enable it.

      Attachments

        1. d3888-1a.diff
          26 kB
          Knut Anders Hatlen
        2. d3888-2a-refman.diff
          3 kB
          Knut Anders Hatlen
        3. reenable.diff
          4 kB
          Knut Anders Hatlen
        4. reenable-v2.diff
          23 kB
          Knut Anders Hatlen
        5. reenable-v3.diff
          23 kB
          Knut Anders Hatlen
        6. rrefsqlj81859.html
          18 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: