Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 44029 invoked from network); 11 Nov 2007 17:17:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2007 17:17:14 -0000 Received: (qmail 47496 invoked by uid 500); 11 Nov 2007 17:17:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47458 invoked by uid 500); 11 Nov 2007 17:17:01 -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 47449 invoked by uid 99); 11 Nov 2007 17:17:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Nov 2007 09:17:01 -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; Sun, 11 Nov 2007 17:17:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D52F9714209 for ; Sun, 11 Nov 2007 09:16:50 -0800 (PST) Message-ID: <19894006.1194801410871.JavaMail.jira@brutus> Date: Sun, 11 Nov 2007 09:16:50 -0800 (PST) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-3182) fifth parameter (boolean isNullable) in DatabaseMetaData.getBestRowIdentifier(.....) has no effect In-Reply-To: <878526.1194399590726.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-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren closed DERBY-3182. ------------------------------------- > fifth parameter (boolean isNullable) in DatabaseMetaData.getBestRowIdentifier(.....) has no effect > --------------------------------------------------------------------------------------------------- > > Key: DERBY-3182 > URL: https://issues.apache.org/jira/browse/DERBY-3182 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4 > Reporter: Myrna van Lunteren > Assignee: Myrna van Lunteren > Attachments: repro.java > > > The fifth parameter in a call to DatabaseMetaData.getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) is getting ignored. > Thus, in the following situation: > s.execute("create table a (i int not null, j int not null, k int, unique (i,j))"); > s.execute("insert into a values (1,1,1)"); > DatabaseMetaData dmd = conn.getMetaData(); > The call: > ResultSet rs = dmd.getBestRowIdentifier(null,"APP","A",0,true); > gives the same results(columns i & j) as > ResultSet rs = dmd.getBestRowIdentifier(null,"APP","A",0,false); > This has been documented as incorrect in the test bestrowidentifier.sql but I could not find any bug logged. > The text in bestrowidentifier was: > -- REMIND: we aren't handling nullOk flag correctly > -- we just drop nullable cols, we should skip an answer > -- that has nullable cols in it instead and look for another one. > create table t13 (i int not null, j int not null, k int, unique (i,j)); > -- result: columns i, j (WRONG) > -- the correct answer is k: the non-null columns of the table > execute bestrow using 'values(''APP'',''T13'',0,''false'')'; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.