Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 56313 invoked from network); 16 Nov 2007 15:27:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2007 15:27:10 -0000 Received: (qmail 4752 invoked by uid 500); 16 Nov 2007 15:26:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4591 invoked by uid 500); 16 Nov 2007 15:26:56 -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 4139 invoked by uid 99); 16 Nov 2007 15:26:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2007 07:26:52 -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; Fri, 16 Nov 2007 15:20:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C017B714249 for ; Fri, 16 Nov 2007 07:19:43 -0800 (PST) Message-ID: <17261985.1195226383780.JavaMail.jira@brutus> Date: Fri, 16 Nov 2007 07:19:43 -0800 (PST) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (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 [ https://issues.apache.org/jira/browse/DERBY-1574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik closed DERBY-1574. -------------------------------- > NullPointerException in UPDATE with COALESCE and subquery > --------------------------------------------------------- > > Key: DERBY-1574 > URL: https://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.1.2.1, 10.1.3.1, 10.1.3.2, 10.1.4.0, 10.2.1.6 > Environment: Java 1.5.0_06 > Reporter: Christian d'Heureuse > Assignee: Dag H. Wanvik > Priority: Minor > Fix For: 10.2.1.6 > > 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. - You can reply to this email to add a comment to the issue online.