Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 19845 invoked from network); 7 Aug 2006 18:36:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 18:36:58 -0000 Received: (qmail 42092 invoked by uid 500); 7 Aug 2006 18:36:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42061 invoked by uid 500); 7 Aug 2006 18:36:56 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 42052 invoked by uid 99); 7 Aug 2006 18:36:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 11:36:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 11:36:55 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF6BF41000B for ; Mon, 7 Aug 2006 18:34:14 +0000 (GMT) Message-ID: <14133301.1154975654781.JavaMail.jira@brutus> Date: Mon, 7 Aug 2006 11:34:14 -0700 (PDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1554) IDENTITY_VAL_LOCAL() returned value is modified incorrectly by a multi-row INSERT statement. In-Reply-To: <1954151.1153429214085.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1554?page=comments#action_12426282 ] Rick Hillegas commented on DERBY-1554: -------------------------------------- Committed derby1554trunkdiff02.txt at subversion revision 429425. As Yip says, derbyall only shows the expected diffs in XATest and wisconsin. > 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 > Assigned To: Yip Ng > Fix For: 10.2.0.0 > > Attachments: DERBY-1554.diff, DERBY-1554.stat, derby1554trunkdiff01.txt, derby1554trunkdiff02.txt, derby1554trunkstat01.txt, derby1554trunkstat02.txt > > > 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