Re: SMALLINT vs short or... int? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: SMALLINT vs short or... int?
Date
Msg-id 47B437D8.1000804@opencloud.com
Whole thread Raw
In response to SMALLINT vs short or... int?  (Tomisław Kityński <hataraku@wp.pl>)
List pgsql-jdbc
Tomisław Kityński wrote:

> But when I call getObject on ResultSet instance on the the
> column that is declared as SMALLINT i get an instance of Integer.

The driver is behaving correctly. See table B-3 in the JDBC 3.0
specification - TINYINT, SMALLINT and INTEGER are all mapped to
java.lang.Integer by ResultSet.getObject().

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: JDBC, prepared queries, and partitioning
Next
From: Simon Riggs
Date:
Subject: Re: JDBC, prepared queries, and partitioning