Re: Missing functionality in ResultSetMetaData ?

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, Thomas Dudziak <tomdzk(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Missing functionality in ResultSetMetaData ?
Date: 2005-08-09 22:52:27
Message-ID: 42F933AB.70908@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Tom Lane wrote:
> Dave Cramer <pg(at)fastcrypt(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2005-08-09 23:01:22 Re: Missing functionality in ResultSetMetaData ?
Previous Message Oliver Jowett 2005-08-09 22:50:48 Re: Missing functionality in ResultSetMetaData ?