pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roy Smith <roy.smith@primetext.com>
To: pgsql-jdbc@postgresql.org
Subject: ResultsetMetaData.getColumnName bug?
Date: Sat, 8 Dec 2007 14:36:00 +0000
Message-ID: <6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.com> (raw)

It looks like getColumnName() is incorrectly returning the column label.
They are normally the same, but I have a query "select add as Address" and
resultsetmetadata.getColumnName(1) is retuning "Address" instead of "add".

In the source code of AbstractJdbc2ResultsetMetadata I see this ...

   public String getColumnName(int column) throws SQLException
    {
        return getColumnLabel(column);
    }



best
Roy

view thread (2+ messages)  latest in thread

Message-ID: <6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.com>
Permalink:  ../6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.com/
Also on:    postgresql.org/message-id/6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.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: roy.smith@primetext.com
  Subject: Re: ResultsetMetaData.getColumnName bug?
  In-Reply-To: <6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.com>
  References: <6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.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