Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject() - Mailing list pgsql-jdbc

From Jason Davies
Subject Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject()
Date
Msg-id 20020608191030.A23591@netspade.com
Whole thread Raw
Responses Re: Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject()
List pgsql-jdbc
Hi,

This patch handles Types.{SMALLINT,DATE,TIME,BINARY,VARBINARY,ARRAY} properly in
ResultSetMetaData.getColumnClassName(intcol). The default return value has been improved slightly too. 

In the case of Types.{BINARY,VARBINARY} it should be a byte[] class name, but AFAIK no such thing exists therefore I
used"java.lang.Object" instead. 

Also I optimized just a couple of things in ResultSet.getObject: there's no need to create a new Boolean object every
timeand there's no need to use (short)getInt(...) since getShort(...) does the same thing :-) 

Thank you,
--Jase

--
Jason Davies

jason@netspade.com

Attachment

pgsql-jdbc by date:

Previous
From: Craig Longman
Date:
Subject: more incorrect values for DatabaseMetaData.getColumns()
Next
From: MTArgent@silverfe.demon.co.uk (M. T. Argent)
Date:
Subject: Compiling postgres to is jdbc