pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: Mike Martin <mmartin@vieo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Wrong column names in ResultSetMetaData
Date: Tue, 3 Aug 2004 01:00:08 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0408030045360.19025@leary.csoft.net> (raw)
In-Reply-To: <410EDF4D.6060808@opencloud.com>
References: <ce9dna$pne$1@news.hub.org>
	<ce9jk0$15mb$1@news.hub.org>
	<41086EF8.7010101@opencloud.com>
	<celqa5$i2c$1@news.hub.org>
	<Pine.BSO.4.56.0408021308010.29090@leary.csoft.net>
	<cembfp$1tpn$1@news.hub.org>
	<Pine.BSO.4.56.0408021705100.21355@leary.csoft.net>
	<410ED4E6.8020806@opencloud.com>
	<Pine.BSO.4.56.0408021925430.5931@leary.csoft.net>
	<410EDF4D.6060808@opencloud.com>



On Tue, 3 Aug 2004, Oliver Jowett wrote:

> As for existing implementations, a quick google turned this up:
> 
> http://publib.boulder.ibm.com/html/as400/v4r5/ic2924/index.htm?info/db2/rbafymst69.htm
> 
> which seems to indicate that DB2 has a column display label (via LABEL 
> ON COLUMN) in addition to column name & column comment.
> 

This is certainly interesting.  OK, I'm pretty much convinced, but would
like to go over some issues with regard to getTableName and getSchemaName.

I believe we agree that for consistency's sake we should return the table
alias (if any) in getTableName.  How could we do that, and what would the
purpose be?  At the moment there is no way to even detect that a column's
source has been aliased and if you could what would a user do with that 
alias?  The inability to detect an alias means that we cannot report the 
base table and schema names only in the non-aliased case.  Is it worth 
creating pg specific getBaseXXXName functions for table/schema while the 
official ones go unused (return "" always) solely for consistency?

Kris Juraka



view thread (27+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0408030045360.19025@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0408030045360.19025@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0408030045360.19025@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, oliver@opencloud.com, mmartin@vieo.com
  Subject: Re: Wrong column names in ResultSetMetaData
  In-Reply-To: <Pine.BSO.4.56.0408030045360.19025@leary.csoft.net>
  References: <ce9dna$pne$1@news.hub.org> <ce9jk0$15mb$1@news.hub.org> <41086EF8.7010101@opencloud.com> <celqa5$i2c$1@news.hub.org> <Pine.BSO.4.56.0408021308010.29090@leary.csoft.net> <cembfp$1tpn$1@news.hub.org> <Pine.BSO.4.56.0408021705100.21355@leary.csoft.net> <410ED4E6.8020806@opencloud.com> <Pine.BSO.4.56.0408021925430.5931@leary.csoft.net> <410EDF4D.6060808@opencloud.com> <Pine.BSO.4.56.0408030045360.19025@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