Re: getColumnClassName() and getObject() types differ for

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Karl von Randow <karl(at)xk72(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: getColumnClassName() and getObject() types differ for
Date: 2005-09-22 22:54:10
Message-ID: 43333612.4090804@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Cook 2005-09-23 00:27:17 Connecting to postgreSQL
Previous Message Karl von Randow 2005-09-22 22:34:50 getColumnClassName() and getObject() types differ for smallint