Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 83462 invoked from network); 5 Nov 2009 08:15:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 08:15:57 -0000 Received: (qmail 37103 invoked by uid 500); 5 Nov 2009 08:15:56 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 37035 invoked by uid 500); 5 Nov 2009 08:15: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 36937 invoked by uid 99); 5 Nov 2009 08:15:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 08:15:55 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 08:15:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 73A1E234C045 for ; Thu, 5 Nov 2009 00:15:32 -0800 (PST) Message-ID: <1170227102.1257408932458.JavaMail.jira@brutus> Date: Thu, 5 Nov 2009 08:15:32 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4365) NullPointerException when preparing LEFT OUTER JOIN between VALUES statements In-Reply-To: <79649988.1251721292684.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-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773825#action_12773825 ] Knut Anders Hatlen commented on DERBY-4365: ------------------------------------------- That's my understanding too. It should be OK to specify NULL if it's wrapped in a CAST, though. So this query should still be accepted: ij> select a.* from (values ('a'),('b'),(cast(null as char(1)))) a left outer join (values ('c'),('d')) b on 1=1; 1 ---- a a b b NULL NULL 6 rows selected > NullPointerException when preparing LEFT OUTER JOIN between VALUES statements > ----------------------------------------------------------------------------- > > Key: DERBY-4365 > URL: https://issues.apache.org/jira/browse/DERBY-4365 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.5.3.0 > Reporter: Knut Anders Hatlen > Assignee: Mamta A. Satoor > > ij version 10.5 > ij> connect 'jdbc:derby:db;create=true'; > ij> select a.* from (values ('a'),('b'),(null)) a > left outer join (values ('c'),('d')) b on 1=1; > ERROR XJ001: Java exception: ': java.lang.NullPointerException'. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.