Re: Wrong column names in ResultSetMetaData - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Wrong column names in ResultSetMetaData
Date
Msg-id 4108C2F1.7090805@opencloud.com
Whole thread Raw
In response to Re: Wrong column names in ResultSetMetaData  (Kris Jurka <books@ejurka.com>)
Responses Re: Wrong column names in ResultSetMetaData
List pgsql-jdbc
Kris Jurka wrote:

> This was done intentionally.  Back in January I applied this patch:
>
> date: 2004/01/13 03:07:09;  author: jurka;  state: Exp;  lines: +95 -31
> This patch is the culmination of Jan-Andre le Roux's work on enhancing
> the ResultSetMetaData methods with new information available in the V3
> protocol.  He wandered off of the verge of completing it and I've just
> done some minor reworking and editing.
>
> This implements getSchemaName, getTableName, getColumnName,
> getColumnLabel, and isNullable.

I notice that the implementation of updateable resultsets use
Field.getColumnLabel() when generating the UPDATE/SELECT/etc SQL.
Presumably this should be using Field.getColumnName() given the current
semantics?

-O

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Wrong column names in ResultSetMetaData
Next
From: Jeremiah Jahn
Date:
Subject: PreparedStatement.getMetaData() and Creator