db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harshvardhan Gupta (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DERBY-6904) Enhance ALTER TABLE to allow CYCLE option to be changed.
Date Sun, 12 Mar 2017 10:15:04 GMT

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

Harshvardhan Gupta edited comment on DERBY-6904 at 3/12/17 10:14 AM:
---------------------------------------------------------------------

Update on previous comment - 

I tested with various scenarios by creating database without and with the new changes using
IJ. Whenever I try to access any of the databases created without my changes through the patched
version I get this error -

"XSCH5: In a base table there was a mismatch between the requested column number 9 and the
maximum number of columns 9.". Note that we increased the number of columns in SYSCOLUMNs
from 9 to 10 in this patch.

Should we incorporate a update strategy when older databases are accessed by this patched
version?


was (Author: harshvardhan145):
Update on previous comment - 

I tested with various scenarios by creating database without and with the new changes using
IJ. Whenever I try to access any of the databases created without my changes through the patched
version I get this error -

"In a base table there was a mismatch between the requested column number 9 and the maximum
number of columns 9.". Note that we increased the number of columns in SYSCOLUMNs from 9 to
10 in this patch.

Should we incorporate a update strategy when older databases are accessed by this patched
version?

> Enhance ALTER TABLE to allow CYCLE option to be changed.
> --------------------------------------------------------
>
>                 Key: DERBY-6904
>                 URL: https://issues.apache.org/jira/browse/DERBY-6904
>             Project: Derby
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 10.13.1.0
>            Reporter: Bryan Pendleton
>            Priority: Minor
>         Attachments: 6904.diff, columnMismatch, compareDbName
>
>
> It would be nice to have a variant of the ALTER TABLE statement,
> similar to the SET INCREMENT BY or SET RESTART WITH variants,
> that allowed a user to change the CYCLE option on an IDENTITY column.
> I think that the code flow for this could be closely modelled on the
> code flow for the SET INCREMENT BY variant: after the statement
> is parsed, we simply need to drop and recreate the underlying SEQUENCE
> object with the desired CYCLE option (and preserving all the other
> aspects of the underlying SEQUENCE object.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message