[ 
https://issues.apache.org/jira/browse/DERBY-3888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003616#comment-14003616
 ] 

Rick Hillegas commented on DERBY-3888:
--------------------------------------

The SQL Standard does allow adding identity columns via ALTER TABLE statements. 
However, a table can only have one identity column. This limitation is stated 
in the 2011 SQL Standard, part 2, section 11.3 (table definition), syntax rule 
15.

> ALTER TABLE ... ADD COLUMN cannot add identity columns
> ------------------------------------------------------
>
>                 Key: DERBY-3888
>                 URL: https://issues.apache.org/jira/browse/DERBY-3888
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 10.4.2.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>              Labels: derby_triage10_10
>         Attachments: reenable-v2.diff, reenable.diff
>
>
> 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/%[email protected]%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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to