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

Rick Hillegas edited comment on DERBY-6959 at 9/11/17 4:43 AM:
---------------------------------------------------------------

Attaching derby-6959-01-aa-requireSETkeyword.diff. This patch makes the SET 
keyword mandatory when altering the cycling behavior of an auto-increment 
column. I am running the full tests now.

Touches the following files:

M       java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
M       
java/testing/org/apache/derbyTesting/functionTests/tests/lang/AutoIncrementTest.java



was (Author: rhillegas):
Attaching derby-6959-01-aa-requireSETkeyword.diff. This patch makes the SET 
keyword mandatory when altering the cycle behavior of an auto-increment column. 
I am running the full tests now.

Touches the following files:

M       java/engine/org/apache/derby/impl/sql/compile/sqlgrammar.jj
M       
java/testing/org/apache/derbyTesting/functionTests/tests/lang/AutoIncrementTest.java


> Require the Standard SET keyword in the syntax for changing the cycle 
> behavior of identity columns
> --------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-6959
>                 URL: https://issues.apache.org/jira/browse/DERBY-6959
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.14.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>             Fix For: 10.14.0.0
>
>         Attachments: derby-6959-01-aa-requireSETkeyword.diff, 
> derby-6959-01-ab-requireSETkeyword.diff, derby-6959-02-aa-setCycleDocs.diff, 
> rrefsqlj81859.html
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to