Re: Missing functionality in ResultSetMetaData ? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Missing functionality in ResultSetMetaData ?
Date
Msg-id 42F933AB.70908@opencloud.com
Whole thread Raw
In response to Re: Missing functionality in ResultSetMetaData ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-jdbc
Tom Lane wrote:
> Dave Cramer <pg@fastcrypt.com> writes:
>
>>The problem is that the server doesn't tell us what the table is that
>>the column came from
>>consider select a as newcol from foo;
>>we don't get the column a back from the server.
>
>
> Uh, that is there in protocol 3.0 ...

Dave has it backwards; the issue is that for:

  SELECT * FROM foo f

the protocol tells us the result columns come from table 'foo'; but
JDBC's getTableName() should return the alias 'f', which we don't
generally know.

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Missing functionality in ResultSetMetaData ?
Next
From: Kris Jurka
Date:
Subject: Re: Missing functionality in ResultSetMetaData ?