Home > Archive > PostgreSQL JDBC > September 2005 > Re: getColumnClassName() and getObject() types differ for









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: getColumnClassName() and getObject() types differ for
Oliver Jowett

2005-09-22, 8:24 pm

Karl von Randow wrote:

> For my smallint column:
> ResultSetMetaData. getColumnClassName()
returns java.lang.Short


That sounds like a bug.

> ResultSet.getObject().getClass().getName() returns java.lang.Integer


This is the correct result per the JDBC spec.

-O

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Kris Jurka

2005-09-29, 8:24 pm

Oliver Jowett wrote:
> Karl von Randow wrote:
>
>
> That sounds like a bug.
>


Fixed in 8.0 and 8.1 cvs.

Kris Jurka
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com