Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 7498 invoked from network); 2 Jun 2010 11:24:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jun 2010 11:24:05 -0000 Received: (qmail 43082 invoked by uid 500); 2 Jun 2010 11:24:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42870 invoked by uid 500); 2 Jun 2010 11:24:03 -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 42862 invoked by uid 99); 2 Jun 2010 11:24:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 11:24:02 +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; Wed, 02 Jun 2010 11:23:59 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o52BNbfM007711 for ; Wed, 2 Jun 2010 11:23:38 GMT Message-ID: <5641257.130101275477817726.JavaMail.jira@thor> Date: Wed, 2 Jun 2010 07:23:37 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-4389) ArrayIndexOutOfBoundsException in RIGHT JOIN with COALESCE In-Reply-To: <383160926.1253913316295.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-4389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen closed DERBY-4389. ------------------------------------- Resolution: Duplicate This bug was fixed by DERBY-4594. Closing as duplicate. > ArrayIndexOutOfBoundsException in RIGHT JOIN with COALESCE > ---------------------------------------------------------- > > Key: DERBY-4389 > URL: https://issues.apache.org/jira/browse/DERBY-4389 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.1, 10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.3.0, 10.6.1.0 > Reporter: Knut Anders Hatlen > > Dag H. Wanvik identified this problematic query in DERBY-4342: > ij> create table t(x int, y int); > 0 rows inserted/updated/deleted > ij> insert into t values (1,2); > 1 row inserted/updated/deleted > ij> select * from t t1 right join t t2 on t1.x=t2.x where coalesce(t1.x,t1.y) = 1; > ERROR 38000: The exception 'java.lang.ArrayIndexOutOfBoundsException: -1' was thrown while evaluating an expression. > ERROR XJ001: Java exception: '-1: java.lang.ArrayIndexOutOfBoundsException'. > With a debug build, an assert failure is raised instead: > ij> select * from t t1 right join t t2 on t1.x=t2.x where coalesce(t1.x,t1.y) = 1; > ERROR XJ001: Java exception: 'ASSERT FAILED sourceResultSetNumber expected to be >= 0 for T1.X: org.apache.derby.shared.common.sanity.AssertFailure'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.