From: Oliver Jowett <oliver@opencloud.com>
To: Thomas Dudziak <tomdzk@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Missing functionality in ResultSetMetaData ?
Date: Wed, 10 Aug 2005 10:50:48 +1200
Message-ID: <42F93348.3000202@opencloud.com> (raw)
In-Reply-To: <224f323405080914194be16ac3@mail.gmail.com>
References: <224f323405080913385a38ece0@mail.gmail.com>
<Pine.BSO.4.56.0508091611090.19160@leary.csoft.net>
<224f323405080914194be16ac3@mail.gmail.com>
Thomas Dudziak wrote:
> Ok, thanks, I see. However, from what I read in the thread the
> question in the mail that you referenced, as to why
> PGResultSetMetadata does not extend ResultSetMetadata, and as a result
> the getTableName method is mapped onto getBaseTableName, is still
> valid IMO. Especially if the information seems to be readily
> available. Would you consider this change for an upcoming release ?
Err, all I was suggesting in that mail was that PGResultSetMetadata
extend ResultSetMetaData so you can do this:
PGResultSetMetadata md = (PGResultSetMetadata)rs.getMetaData();
String baseName = md.getBaseTableName(...);
String aliasName = md.getTableName(...);
Currently you can't do that because PGResultSetMetadata has no
getTableName() method; you have to sometimes deal with the standard
interface and sometimes with the extension interface, depending on the
method you call.
It would not change the behaviour of getBaseTableName or getTableName()
at all; it's merely a syntactic convenience.
I'm not sure what you thought I meant, but it was obviously something
different :)
-O
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: oliver@opencloud.com, tomdzk@gmail.com
Subject: Re: Missing functionality in ResultSetMetaData ?
In-Reply-To: <42F93348.3000202@opencloud.com>
References: <224f323405080913385a38ece0@mail.gmail.com> <Pine.BSO.4.56.0508091611090.19160@leary.csoft.net> <224f323405080914194be16ac3@mail.gmail.com> <42F93348.3000202@opencloud.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