Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 7461 invoked from network); 9 Aug 2006 00:54:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 00:54:59 -0000 Received: (qmail 88299 invoked by uid 500); 9 Aug 2006 00:54:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 88264 invoked by uid 500); 9 Aug 2006 00:54:59 -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 88255 invoked by uid 99); 9 Aug 2006 00:54:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 17:54:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 17:54:58 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5AF847141F0 for ; Wed, 9 Aug 2006 00:52:15 +0000 (GMT) Message-ID: <22395525.1155084735370.JavaMail.jira@brutus> Date: Tue, 8 Aug 2006 17:52:15 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1574) NullPointerException in UPDATE with COALESCE and subquery In-Reply-To: <8128822.1153616473882.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1574?page=all ] Dag H. Wanvik updated DERBY-1574: --------------------------------- Fix Version/s: 10.2.0.0 > NullPointerException in UPDATE with COALESCE and subquery > --------------------------------------------------------- > > Key: DERBY-1574 > URL: http://issues.apache.org/jira/browse/DERBY-1574 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.0, 10.0.2.1, 10.0.2.2, 10.1.1.0, 10.2.0.0, 10.1.2.1, 10.1.3.0, 10.1.4.0, 10.1.3.1, 10.1.3.2 > Environment: Java 1.5.0_06 > Reporter: Christian d'Heureuse > Assigned To: Dag H. Wanvik > Priority: Minor > Fix For: 10.2.0.0 > > Attachments: derby1574-2.diff, derby1574-2.stat, derby1574.diff, predicatePushdown.diff > > > The following statements generate a NullPointerException: > CREATE TABLE t1 (i INTEGER); > CREATE TABLE t2 (i INTEGER); > UPDATE t1 > SET i = COALESCE( > (SELECT i FROM t2 WHERE t2.i=t1.i), > 0); > Any further SQL statements generate an internal error in RawStore, e.g.: > SELECT * FROM t1; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira