pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Mike Martin <mmartin@vieo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Wrong column names in ResultSetMetaData
Date: Thu, 29 Jul 2004 16:41:49 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407291637280.9570@leary.csoft.net> (raw)
In-Reply-To: <cebd4c$2ku1$1@news.hub.org>
References: <ce9dna$pne$1@news.hub.org>
	<ce9jk0$15mb$1@news.hub.org>
	<Pine.BSO.4.56.0407282213330.155@leary.csoft.net>
	<cebd4c$2ku1$1@news.hub.org>



On Thu, 29 Jul 2004, Mike Martin wrote:

> 2.  Every other JDBC driver I'm familiar with behaves that way
>     (with the exception, I hear, of MimerSQL, which confuses
>     getColumnLabel() with SQL alias the way our new code does).

What do they return for getColumnLabel()?  Previously we returned the same 
value for both methods simply because we couldn't implement getColumnName 
as we do now.  If they all return the alias in getColumnLabel that would 
be telling.

> I'm not clear why a JDBC client would want or need to know the
> "underlying" column name, if there even is one.  I can see why
> the driver might need to know that internally for purposes of
> updateability but that's something different.
> 

To allow client software to do the updates or allow the user to navigate 
from a query result column to the base table or to/through foreign keys on 
it.  There could be a number of uses.

Kris Jurka



view thread (27+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0407291637280.9570@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0407291637280.9570@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0407291637280.9570@leary.csoft.net

 · 

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: books@ejurka.com, mmartin@vieo.com
  Subject: Re: Wrong column names in ResultSetMetaData
  In-Reply-To: <Pine.BSO.4.56.0407291637280.9570@leary.csoft.net>
  References: <ce9dna$pne$1@news.hub.org> <ce9jk0$15mb$1@news.hub.org> <Pine.BSO.4.56.0407282213330.155@leary.csoft.net> <cebd4c$2ku1$1@news.hub.org> <Pine.BSO.4.56.0407291637280.9570@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