Re: Improper type conversion from smallint to short - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Improper type conversion from smallint to short
Date
Msg-id alpine.BSO.2.00.1303141926050.13697@leary.csoft.net
Whole thread Raw
In response to Improper type conversion from smallint to short  (Igor Urisman <igor.urisman@gmail.com>)
Responses Re: Improper type conversion from smallint to short
List pgsql-jdbc

On Thu, 14 Mar 2013, Igor Urisman wrote:

> Hello,It appears that ResultSet.getObject(String name) returns Integer for
> database type Types.SMALLINT (5)  I expected Short.
>

Returning Integer is correct according to the JDBC spec.  See table 8.6.3
here:

http://www.cis.upenn.edu/~bcpierce/courses/629/jdkdocs/guide/jdbc/getstart/mapping.doc.html

Kris Jurka

pgsql-jdbc by date:

Previous
From: Igor Urisman
Date:
Subject: Improper type conversion from smallint to short
Next
From: Igor Urisman
Date:
Subject: Re: Improper type conversion from smallint to short