Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 78624 invoked from network); 8 Sep 2009 14:55:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Sep 2009 14:55:22 -0000 Received: (qmail 27514 invoked by uid 500); 8 Sep 2009 14:55:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 27464 invoked by uid 500); 8 Sep 2009 14:55:21 -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 27456 invoked by uid 99); 8 Sep 2009 14:55:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 14:55:21 +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; Tue, 08 Sep 2009 14:55:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 843F7234C044 for ; Tue, 8 Sep 2009 07:54:57 -0700 (PDT) Message-ID: <1986874017.1252421697540.JavaMail.jira@brutus> Date: Tue, 8 Sep 2009 07:54:57 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-4284) All Columns become Nullable when Using left join In-Reply-To: <318850444.1245657007355.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-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen resolved DERBY-4284. --------------------------------------- Resolution: Fixed Fix Version/s: 10.5.3.1 Merged to the 10.5 branch and committed revision 812536. > All Columns become Nullable when Using left join > ------------------------------------------------ > > Key: DERBY-4284 > URL: https://issues.apache.org/jira/browse/DERBY-4284 > Project: Derby > Issue Type: Bug > Components: JDBC, SQL > Affects Versions: 10.5.1.1 > Environment: Microsoft Windows XP SP3, Sun JDK 6 Update 14 > Reporter: Chua Chee Seng > Assignee: Knut Anders Hatlen > Fix For: 10.5.3.1, 10.6.0.0 > > Attachments: derby-4284-1a.diff, derby-4284-1b.diff, derby-4284-1b.stat, derby-4284-1c.diff, derby-4284-1c.stat, derby-4284-1d.diff, Main.java > > > Consider following:- > create table person ( > id varchar(20) not null, > name varchar(100) not null > ); > create table car ( > id varchar(20) not null, > person_id varchar(20) not null, > model varchar(100) not null, > plat_no varchar(100) not null > ); > When select :- > select > p.name, > c.model, > c.plat_no > from person p > left join car c on (p.id = c.person_id); > From the ResultSet, get the ResultSetMetaData and inspect each column's isNullable() value, which is always = 1 (always nullable). Expected : column 'p.name' isNullable = 0 (not nullable), but I get 'p.name' isNullable = 1 (nullable) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.