From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Goodenough <david.goodenough@btconnect.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Support for ResultSetMetaData.getTableName
Date: Mon, 27 Aug 2007 01:53:12 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0708270140030.23186@leary.csoft.net> (raw)
In-Reply-To: <13835.1188192676@sss.pgh.pa.us>
References: <200708211506.22384.david.goodenough@btconnect.com>
<Pine.BSO.4.64.0708270055230.23186@leary.csoft.net>
<13835.1188192676@sss.pgh.pa.us>
On Mon, 27 Aug 2007, Tom Lane wrote:
> I suggest that the following mapping might be more sensible:
>
> getColumnName returns "a"
> getTableName returns "c"
> getSchemaName returns name of c's schema
> getColumnLabel returns "b"
>
> where the first three fail if the SELECT column isn't a simple column
> reference, but getColumnLabel always works.
>
I tried that back here:
http://archives.postgresql.org/pgsql-jdbc/2004-07/threads.php#00314
and continuing here:
http://archives.postgresql.org/pgsql-jdbc/2004-08/threads.php#00008
This message demonstrates that many other drivers do Column Name/Label in
a different way:
http://archives.postgresql.org/pgsql-jdbc/2004-08/msg00012.php
So while I agree with you that the above suggestions make sense from a
blank slate, we can't do this without causing problems. It seems people
would like us to fallback from our position of table and schema returning
aliases, which while inconsistent, is certainly more useful at this point
in time.
Kris Jurka
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: books@ejurka.com, tgl@sss.pgh.pa.us, david.goodenough@btconnect.com
Subject: Re: Support for ResultSetMetaData.getTableName
In-Reply-To: <Pine.BSO.4.64.0708270140030.23186@leary.csoft.net>
References: <200708211506.22384.david.goodenough@btconnect.com> <Pine.BSO.4.64.0708270055230.23186@leary.csoft.net> <13835.1188192676@sss.pgh.pa.us> <Pine.BSO.4.64.0708270140030.23186@leary.csoft.net>
* 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