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

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group