Thanks, Kris. Not to argue... The spec you're quoting from is pre Java 1.1, which is when Short was introduced. (Integer was in 1.0). Just thinking... That same spec recommends primitive short. Just sayin'.
-Igor.
On Thu, Mar 14, 2013 at 5:27 PM, Kris Jurka <books@ejurka.com> wrote:
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: