Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 27552 invoked from network); 24 Sep 2008 17:14:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2008 17:14:07 -0000 Received: (qmail 98641 invoked by uid 500); 24 Sep 2008 17:14:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98430 invoked by uid 500); 24 Sep 2008 17:14:04 -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 98419 invoked by uid 99); 24 Sep 2008 17:14:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 10:14:04 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 17:13:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2F54F234C1F5 for ; Wed, 24 Sep 2008 10:13:46 -0700 (PDT) Message-ID: <1630452177.1222276426192.JavaMail.jira@brutus> Date: Wed, 24 Sep 2008 10:13:46 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3880) NPE on a query with having clause involving a join In-Reply-To: <388414194.1221612464197.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3880?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1263= 4204#action_12634204 ]=20 Kathey Marsden commented on DERBY-3880: --------------------------------------- This is a regression caused by DERBY-681 (svn revision 516454) > NPE on a query with having clause involving a join > -------------------------------------------------- > > Key: DERBY-3880 > URL: https://issues.apache.org/jira/browse/DERBY-3880 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.2.0 > Environment: Windows 2003 Server=20 > Reporter: Venkateswaran Iyer > Priority: Minor > > A simple query involving a join and having clause causes a NPE. Any subse= quent executions cause severe errors. It almost looks like the underlying c= onnection was closed out. > =3D=3D=3D=3D > C:\apps\derby\db-derby-10.4.2.0-bin\db-derby-10.4.2.0-bin\bin>ij > ij version 10.4 > ij> connect 'jdbc:derby://speed:1527/ClassicModels;user=3Dsa;password=3Ds= a > '; > ij> create table t1(i int, c varchar(20)); > 0 rows inserted/updated/deleted > ij> create table t2(i int, c2 varchar(20), i2 int); > 0 rows inserted/updated/deleted > ij> insert into t1 values(1, 'abc'); > 1 row inserted/updated/deleted > ij> insert into t1 values(2, 'abc'); > 1 row inserted/updated/deleted > ij> insert into t2 values(1, 'xyz', 10); > 1 row inserted/updated/deleted > ij> insert into t2 values(1, 'aaa', 20); > 1 row inserted/updated/deleted > ij> insert into t2 values(2, 'xxx', 30); > 1 row inserted/updated/deleted > ij> select t1.i, avg(t2.i2) from t1 inner join t2 on (t1.i =3D t2.i) grou= p by t1.i > having avg(t2.i2) > 0; > ERROR XJ001: DERBY SQL error: SQLCODE: -1, SQLSTATE: XJ001, SQLERRMC: jav= a.lang. > NullPointerException=C2=B6=C2=B6XJ001.U --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.