Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 38834 invoked from network); 5 Jul 2010 12:58:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 12:58:51 -0000 Received: (qmail 37227 invoked by uid 500); 5 Jul 2010 12:58:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37057 invoked by uid 500); 5 Jul 2010 12:58:50 -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 36532 invoked by uid 99); 5 Jul 2010 12:58:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 12:58:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 12:58:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o65Cor9U007147 for ; Mon, 5 Jul 2010 12:50:53 GMT Message-ID: <8173307.201611278334253049.JavaMail.jira@thor> Date: Mon, 5 Jul 2010 08:50:53 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4451) ArrayIndexOutOfBoundsException or ASSERT FAILED when inserting generated columns out of order In-Reply-To: <95798141.1258619740558.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-4451: -------------------------------------- Fix Version/s: (was: 10.5.4.0) Changed 10.5 fix version to match the version on the branch. > ArrayIndexOutOfBoundsException or ASSERT FAILED when inserting generated columns out of order > --------------------------------------------------------------------------------------------- > > Key: DERBY-4451 > URL: https://issues.apache.org/jira/browse/DERBY-4451 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.5.3.0, 10.6.1.0 > Reporter: Knut Anders Hatlen > Assignee: Dag H. Wanvik > Fix For: 10.5.3.1, 10.6.1.0 > > Attachments: derby-4451.diff, derby-4451.stat, derby-4451b.diff, derby-4451b.stat, derby-4451c.diff, derby-4451c.stat, derby-4451d.diff, derby-4451d.stat > > > I see this error when I specify the columns in a different order than in the table definition. It only fails if a multi-row table constructor is used. > ij> create table t(a int, b generated always as (-a)); > 0 rows inserted/updated/deleted > ij> insert into t(b,a) values (default,1); > 1 row inserted/updated/deleted > ij> insert into t(b,a) values (default,1), (default, 2); > ERROR XJ001: Java exception: '1 >= 1: java.lang.ArrayIndexOutOfBoundsException'. > And in a sane build: > ij> insert into t(b,a) values (default,1),(default,2); > ERROR XJ001: Java exception: 'ASSERT FAILED More columns in result column list than in base table: org.apache.derby.shared.common.sanity.AssertFailure'. > This bug may be similar to DERBY-4448, but the stack trace is different, and DERBY-4448 does not raise an ASSERT FAILED in sane builds. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.