ResultsetMetaData.getColumnName bug?

From: "Roy Smith" <roy(dot)smith(at)primetext(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: ResultsetMetaData.getColumnName bug?
Date: 2007-12-08 14:36:00
Message-ID: 6a1128300712080636k6df89deje6ce4035b58f90b0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2007-12-08 16:05:15 Re: ResultsetMetaData.getColumnName bug?
Previous Message Tom Lane 2007-12-08 07:47:56 Re: JDBC driver patch for non-ASCII users