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