getObject returns wrong type for SMALLINT - Mailing list pgsql-jdbc

From Scott Royston
Subject getObject returns wrong type for SMALLINT
Date
Msg-id 7E529538-12E9-11D7-8E12-000393DB7C68@mac.com
Whole thread Raw
List pgsql-jdbc
if you read the JDBC spec and look at table B-3 in the appendix, it
should be Integer, not Short.
it's confusing, because the 'preferred method' of retrieving a SMALLINT
is getShort(), and the preferred associated data type is short.
However, for getObject(), it should return an Integer.

sorry for not providing a patch, but it's been awhile since I've
touched cvs/patch and I don't have a ton of time right now...


pgsql-jdbc by date:

Previous
From: Thomas O'Dowd
Date:
Subject: Re: Strange behaviour of JDBC driver for PostgreSQL
Next
From: Noel Faux
Date:
Subject: Re: error when using move, any suggestions?