[ http://issues.apache.org/jira/browse/DERBY-1554?page=all ]

Rick Hillegas updated DERBY-1554:
---------------------------------

    Fix Version/s: 10.2.0.0
         Priority: Critical  (was: Major)

Assigning this bug to 10.2 and bumping its priority to Critical. This will make 
it visible to bug-fixers. Once the Urgency field appears, we can adjust the 
severity of this bug.

> IDENTITY_VAL_LOCAL() returned value is modified incorrectly by a multi-row 
> INSERT statement.
> --------------------------------------------------------------------------------------------
>
>                 Key: DERBY-1554
>                 URL: http://issues.apache.org/jira/browse/DERBY-1554
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.2.0.0
>            Reporter: Daniel John Debrunner
>            Priority: Critical
>             Fix For: 10.2.0.0
>
>
> Changes made in DERBY-353 break the documented behaviour of 
> IDENTITY_VAL_LOCAL(). Now the returned value is modified when a multi-row 
> insert is performed.
> IDENTITY_VAL_LOCAL() should not be updated when this occurs.
> For this script the last value returned should be 2 (as in 10.1) but in 10.2 
> is 4
> create table ta (a int, b int generated always as identity);
> insert into ta(a) values 100;
> values IDENTITY_VAL_LOCAL();
> insert into ta(a) values 200;
> values IDENTITY_VAL_LOCAL();
> insert into ta(a) values 300,400;
> values IDENTITY_VAL_LOCAL();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to