Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 50655 invoked from network); 16 Jan 2008 10:49:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2008 10:49:00 -0000 Received: (qmail 67871 invoked by uid 500); 16 Jan 2008 10:48:48 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 67838 invoked by uid 500); 16 Jan 2008 10:48:48 -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 67826 invoked by uid 99); 16 Jan 2008 10:48:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 02:48:48 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 10:48:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8C76471422B for ; Wed, 16 Jan 2008 02:48:34 -0800 (PST) Message-ID: <33101033.1200480514572.JavaMail.jira@brutus> Date: Wed, 16 Jan 2008 02:48:34 -0800 (PST) From: =?utf-8?Q?J=C3=B8rgen_L=C3=B8land_=28JIRA=29?= To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3321) NullPointerException for 'NOT EXISTS' with nested subquery In-Reply-To: <19787854.1200480274689.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-3321?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] J=C3=B8rgen L=C3=B8land updated DERBY-3321: --------------------------------- Attachment: derby.log Attached derby.log. This issue also applies to 'exists', i.e. the same query without 'not' > NullPointerException for 'NOT EXISTS' with nested subquery > ---------------------------------------------------------- > > Key: DERBY-3321 > URL: https://issues.apache.org/jira/browse/DERBY-3321 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.2.1, 10.4.0.0 > Reporter: J=C3=B8rgen L=C3=B8land > Priority: Minor > Attachments: derby.log > > > Queries with 'not exists' followed by a nested subquery results in NPE: > -----------8<-------------- > connect 'jdbc:derby:testdb;create=3Dtrue'; > create table a (aa int, bb int); > -- 0 rows inserted/updated/deleted > create table b (bb int); > -- 0 rows inserted/updated/deleted > insert into a values (1, 1), (1, 2), (2, 2); > -- 3 rows inserted/updated/deleted > insert into b values (1); > -- 1 row inserted/updated/deleted > select * from a=20 > where not exists=20 > (select bb from b where a.bb=3Db.bb); > -- AA |BB > -- ---------------------- > -- 1 |2 > -- 2 |2 > select bb from (select bb from b) p; > -- BB > -- ----------- > -- 1 > select * from a=20 > where not exists=20 > (select bb from (select bb from b) p where a.bb=3Dp.bb); > -- ERROR XJ001: Java exception: ': java.lang.NullPointerException'. > ------------>8---------------- --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.