Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Wrong column names in ResultSetMetaData


  • From: Oliver Jowett <oliver(at)opencloud(dot)com>
  • To: Kris Jurka <books(at)ejurka(dot)com>
  • Cc: pgsql-jdbc(at)postgresql(dot)org
  • Subject: Re: Wrong column names in ResultSetMetaData
  • Date: Thu, 29 Jul 2004 21:27:13 +1200
  • Message-id: <4108C2F1.7090805@opencloud.com> <text/plain>

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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group