pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Thomas Dudziak <tomdzk@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Missing functionality in ResultSetMetaData ?
Date: Wed, 10 Aug 2005 10:52:27 +1200
Message-ID: <42F933AB.70908@opencloud.com> (raw)
In-Reply-To: <19264.1123622388@sss.pgh.pa.us>
References: <224f323405080913385a38ece0@mail.gmail.com>
	<B5486749-C63D-4136-A3C0-64DC1FAF6CAD@fastcrypt.com>
	<19264.1123622388@sss.pgh.pa.us>

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



view thread (16+ messages)  latest in thread

Message-ID: <42F933AB.70908@opencloud.com>
Permalink:  ../42F933AB.70908@opencloud.com/
Also on:    postgresql.org/message-id/42F933AB.70908@opencloud.com

 · 

reply

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, tgl@sss.pgh.pa.us, pg@fastcrypt.com, tomdzk@gmail.com
  Subject: Re: Missing functionality in ResultSetMetaData ?
  In-Reply-To: <42F933AB.70908@opencloud.com>
  References: <224f323405080913385a38ece0@mail.gmail.com> <B5486749-C63D-4136-A3C0-64DC1FAF6CAD@fastcrypt.com> <19264.1123622388@sss.pgh.pa.us> <42F933AB.70908@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