From derby-dev-return-91695-apmail-db-derby-dev-archive=db.apache.org@db.apache.org Mon Nov 7 11:46:13 2011 Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22FFB75EA for ; Mon, 7 Nov 2011 11:46:13 +0000 (UTC) Received: (qmail 43000 invoked by uid 500); 7 Nov 2011 11:46:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42985 invoked by uid 500); 7 Nov 2011 11:46:12 -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 42977 invoked by uid 99); 7 Nov 2011 11:46:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 11:46:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 11:46:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 93D8938205 for ; Mon, 7 Nov 2011 11:45:51 +0000 (UTC) Date: Mon, 7 Nov 2011 11:45:51 +0000 (UTC) From: "Knut Anders Hatlen (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <864134904.6405.1320666351606.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <434684097.19500.1319653052372.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5486) Upgrade tests should verify that DERBY-4437 was backed out of 10.8.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145356#comment-13145356 ] Knut Anders Hatlen commented on DERBY-5486: ------------------------------------------- It is also possible to get the same value returned twice in a single ij session (might be a different bug): ij version 10.9 ij> connect 'jdbc:derby:memory:db;create=true'; ij> create table t (x int); 0 rows inserted/updated/deleted ij> create sequence s; 0 rows inserted/updated/deleted ij> autocommit off; ij> select count(*) from sys.syssequences with rs; 1 ----------- 1 1 row selected ij> values next value for s; 1 ----------- -2147483648 1 row selected ij> drop table t; 0 rows inserted/updated/deleted ij> rollback; ij> values next value for s; 1 ----------- -2147483648 1 row selected > Upgrade tests should verify that DERBY-4437 was backed out of 10.8.2.2 > ---------------------------------------------------------------------- > > Key: DERBY-5486 > URL: https://issues.apache.org/jira/browse/DERBY-5486 > Project: Derby > Issue Type: Improvement > Components: SQL, Test > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Attachments: derby-5486-01-ab-mergeFiles.diff, derby-5486-02-aa-removeTests.diff > > > The following code in UpgradeRun needs to be reworked to verify that sequence/identities behave as expected when upgrading from 10.8.2.2: > if ( lessThan( version, new int[] { 10, 8, 1, 6 } ) ) > { suite.addTest(Changes10_8_2.suite(phase)); } > The following might do the trick: > if (oldMinor < 7) > suite.addTest(Changes10_7.suite(phase)); > if (oldMinor < 9) > { > suite.addTest(Changes10_9.suite(phase)); > suite.addTest(Changes10_8_2.suite(phase)); > } > Thanks to Kristian for spotting this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira