X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C54C89FA088 for ; Fri, 22 Sep 2006 10:30:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 66569-06 for ; Fri, 22 Sep 2006 10:30:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 0C8D69FB332 for ; Fri, 22 Sep 2006 10:30:08 -0300 (ADT) Received: (qmail 20081 invoked from network); 22 Sep 2006 13:30:07 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 22 Sep 2006 13:30:07 -0000 In-Reply-To: <4513E3E5.5010502@logix-tt.com> References: <20060922084944.xbng75r2jjgog04w@webmail.versatel.nl> <4513E3E5.5010502@logix-tt.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: ResultSetMetaData.getTableName() == null Date: Fri, 22 Sep 2006 09:30:03 -0400 To: Markus Schaber X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.035 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/96 X-Sequence-Number: 15814 On 22-Sep-06, at 9:23 AM, Markus Schaber wrote: > Hi, Alex, > > Alex Stienstra wrote: >> MySQL returns the tablename if possible otherwise the alias. I >> find this >> an acceptable solution. Having at least a name one could query the >> meta >> system in other to determine whether it is a table name or not. > > The problem is that PostgreSQL does not pass any information about > aliases down to the client. > > So we have two possibilities to implement this feature: Hack up the > server to provide that additional info, or implement a fully- > fledged SQL > parser in the client and get the alias names ourselves. Certainly parsing the SQL is expensive, however I would like to see the server extend the protocol to give us this information. Dave > > Both seems not worth it currently. > > HTH, > Markus > -- > Markus Schaber | Logical Tracking&Tracing International AG > Dipl. Inf. | Software Development GIS > > Fight against software patents in Europe! www.ffii.org > www.nosoftwarepatents.org > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that > your > message can get through to the mailing list cleanly >