From: Markus Schaber <schabi@logix-tt.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: ResultSetMetaData.getTableName() == null
Date: Fri, 22 Sep 2006 15:23:49 +0200
Message-ID: <4513E3E5.5010502@logix-tt.com> (raw)
In-Reply-To: <20060922084944.xbng75r2jjgog04w@webmail.versatel.nl>
References: <20060922084944.xbng75r2jjgog04w@webmail.versatel.nl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: schabi@logix-tt.com
Subject: Re: ResultSetMetaData.getTableName() == null
In-Reply-To: <4513E3E5.5010502@logix-tt.com>
References: <20060922084944.xbng75r2jjgog04w@webmail.versatel.nl> <4513E3E5.5010502@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox