pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: Mike Martin <mmartin@vieo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Wrong column names in ResultSetMetaData
Date: Tue, 03 Aug 2004 12:41:49 +1200
Message-ID: <410EDF4D.6060808@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0408021925430.5931@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>

Kris Jurka wrote:
> 
> On Tue, 3 Aug 2004, Oliver Jowett wrote:
> 
> 
>>   RSMD.getColumnLabel() returns the column alias, or maybe something 
>>like the column's comment (can you COMMENT ON columns?) later.
> 
> 
> The spec authors must have had some 
> existing implementation to inspire this feature.  The argument that 
> getColumnLabel and getColumnName should do the exact same thing just seems 
> wrong to me.

That wasn't the argument. The column name is just that a good default 
label if you have nothing better to hand. If Postgres had a 
(hypothetical) column label field associated with each column, for 
example, we could return that.

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.

-O



view thread (27+ messages)  latest in thread

Message-ID: <410EDF4D.6060808@opencloud.com>
Permalink:  ../410EDF4D.6060808@opencloud.com/
Also on:    postgresql.org/message-id/410EDF4D.6060808@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, books@ejurka.com, mmartin@vieo.com
  Subject: Re: Wrong column names in ResultSetMetaData
  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>

* 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