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 65EC39FB35A for ; Fri, 22 Sep 2006 10:23:57 -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 65889-05 for ; Fri, 22 Sep 2006 10:23:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 3AA3B9FA088 for ; Fri, 22 Sep 2006 10:23:47 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (84-72-188-217.dclient.hispeed.ch [84.72.188.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 86C0D65978 for ; Fri, 22 Sep 2006 15:26:05 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 43D8A185B6720 for ; Fri, 22 Sep 2006 15:23:50 +0200 (CEST) Message-ID: <4513E3E5.5010502@logix-tt.com> Date: Fri, 22 Sep 2006 15:23:49 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: ResultSetMetaData.getTableName() == null References: <20060922084944.xbng75r2jjgog04w@webmail.versatel.nl> In-Reply-To: <20060922084944.xbng75r2jjgog04w@webmail.versatel.nl> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.188 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/95 X-Sequence-Number: 15813 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. 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