Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 48373 invoked from network); 9 Jul 2010 17:12:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jul 2010 17:12:15 -0000 Received: (qmail 59357 invoked by uid 500); 9 Jul 2010 17:12:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 59286 invoked by uid 500); 9 Jul 2010 17:12:15 -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 59272 invoked by uid 99); 9 Jul 2010 17:12:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 17:12:14 +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; Fri, 09 Jul 2010 17:12:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o69HBoTC005808 for ; Fri, 9 Jul 2010 17:11:51 GMT Message-ID: <8806614.286761278695510038.JavaMail.jira@thor> Date: Fri, 9 Jul 2010 13:11:50 -0400 (EDT) From: "Lily Wei (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4449) ArrayIndexOutOfBoundsException when inserting DEFAULT into unspecified column In-Reply-To: <1133913897.1258580919697.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-4449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12886773#action_12886773 ] Lily Wei commented on DERBY-4449: --------------------------------- derby-4449-10.5.diff passed suites.all and derbyall. It is ready to submit. > ArrayIndexOutOfBoundsException when inserting DEFAULT into unspecified column > ----------------------------------------------------------------------------- > > Key: DERBY-4449 > URL: https://issues.apache.org/jira/browse/DERBY-4449 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.5.3.0, 10.6.1.0 > Reporter: Knut Anders Hatlen > Assignee: Lily Wei > Fix For: 10.7.0.0 > > Attachments: derby-4449-10.5.diff, derby-4449-1a.diff > > > When inserting rows into a table, with just a subset of the table's columns in the target column list, an ArrayIndexOutOfBoundsException is raised if the table constructor contains the same number of columns as the target table, and the extra columns are specified as DEFAULT: > ij> create table t (a int, b int); > 0 rows inserted/updated/deleted > ij> insert into t(a) values (1,default); > ERROR XJ001: Java exception: '1 >= 1: java.lang.ArrayIndexOutOfBoundsException'. > The insert statement should have failed with this error: > ERROR 42802: The number of values assigned is not the same as the number of specified or implied columns. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.