Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 13911 invoked from network); 28 Jan 2005 05:45:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jan 2005 05:45:16 -0000 Received: (qmail 86244 invoked by uid 500); 28 Jan 2005 05:45:15 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86012 invoked by uid 500); 28 Jan 2005 05:45:15 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 85996 invoked by uid 99); 28 Jan 2005 05:45:14 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from brmea-mail-4.Sun.COM (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 27 Jan 2005 21:45:13 -0800 Received: from phys-biff-1 ([129.158.227.36]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id j0S5jAdt022652 for ; Thu, 27 Jan 2005 22:45:11 -0700 (MST) Received: from conversion-daemon.biff-mail1.india.sun.com by biff-mail1.india.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IB000D01IGSX9@biff-mail1.india.sun.com> (original mail from Shreyas.Kaushik@Sun.COM) for derby-dev@db.apache.org; Fri, 28 Jan 2005 11:15:09 +0530 (IST) Received: from [129.158.229.246] (lilly.India.Sun.COM [129.158.229.246]) by biff-mail1.india.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IB0006ICIN929@biff-mail1.india.sun.com> for derby-dev@db.apache.org; Fri, 28 Jan 2005 11:15:09 +0530 (IST) Date: Fri, 28 Jan 2005 11:13:20 +0530 From: Shreyas Kaushik Subject: Re: [jira] Commented: (DERBY-18) Exposed name matching has bugs when the column name is qualified with a schema name. In-reply-to: <41F9CEA3.5020008@debrunners.com> To: Derby Development Message-id: <41F9D0F8.5050208@Sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0 (X11/20041208) References: <1482726858.1106569937366.JavaMail.jira@ajax.apache.org> <41F6A47D.3000704@debrunners.com> <41F9BE4A.3020802@Sun.com> <41F9CEA3.5020008@debrunners.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N My answers inline. Shreyas Daniel John Debrunner wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Shreyas Kaushik wrote: > > > >>Dan, >> >>I did the patch for this. >> >>>From your comments I looked at the getSchemaDescriptor() in >>QueryTreeNode. The schema name was getting >>stored there but not stored in the TableName in the corresponding node. >> >>Since *null* schema implies current schema I just called bind() in >>TableName.java whereever the schema was null. >> >> > >I'm not sure this is correct, because if you remember you patch to >Derby-13, a TableName with a null schema can represent a correlation >name (which don't have schemas). So the fact a TableName's schema name >is null does not always mean that its schema name maps to the current >schema. Thus only when a TableName represents a implicitly schema >qualifed name (table, view, procedure, function, trigger, index, >constraint name) should its lack of schema name be converted to the >current schema. Possibly the only case that doesn't have an implicit >schema name is the correlation name. > > Yes you are right, I agree . >Thus the patch needs to be careful of this overloaded use of TableName. >Does your patch handle this correctly? > While binding the TableName object with schema name see whether correlation nae is null or not, along these lines. >Without looking at the code in >detail I'm not sure how to handle this correctly, if you haven't made >any progress I can try give and help out tomorrow. > > Your help and comments would be helpful for me to learn going forward. Thanks :-) >Dan. > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.5 (MingW32) >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iD8DBQFB+c6jIv0S4qsbfuQRAvmcAJ9Nu4H0HzhGxg+S8nOJqBxi1gbbAQCgtWjO >dLSVBATTSeJjkHrin45ygk4= >=3KaU >-----END PGP SIGNATURE----- > > >