From: Mike Martin <mmartin@vieo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Wrong column names in ResultSetMetaData
Date: Mon, 2 Aug 2004 16:24:08 -0500
Message-ID: <cembfp$1tpn$1@news.hub.org> (raw)
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>
Kris Jurka wrote:
> All the documentation you've pointed to is circumstancial at best.
Come now, I think it's a little better than that. I guess I
don't see as much ambiguity in "... the SQL AS clause can be
used to provide names for computed columns" as you do.
> You will need to find clear
> documentation that this is incorrect or rally some other users to your
> position.
Then I call on all users using any of the following DBMS's
to weigh in on this issue:
SELECT PRICE AS ORIG_PRICE, PRICE + 1.00 AS PRICE FROM T
getColumnName(1) getColumnName(2)
DB/driver getColumnLabel(1) getColumnLabel(2)
Cloudscape ORIG_PRICE ORIG_PRICE PRICE PRICE
Firebird ORIG_PRICE ORIG_PRICE PRICE PRICE
SQL Server (JTDS) ORIG_PRICE ORIG_PRICE PRICE PRICE
SQL Server (MS) ORIG_PRICE ORIG_PRICE PRICE PRICE
MySQL Connector/J ORIG_PRICE ORIG_PRICE PRICE PRICE
Oracle thin ORIG_PRICE ORIG_PRICE PRICE PRICE
PostgreSQL 7.4 orig_price orig_price price price
PostgreSQL 7.5 price orig_price price ""
Those are the drivers I have handy at the moment. I have a couple
more I can try tomorrow. I invite others to post their results.
Of course, this is probably the wrong NG for a cross-DB call to
arms. :) But I should think that sample is large enough to cause
worry about how much code is going to be broken.
Mike
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: mmartin@vieo.com
Subject: Re: Wrong column names in ResultSetMetaData
In-Reply-To: <cembfp$1tpn$1@news.hub.org>
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>
* 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