From: Oliver Jowett <oliver@opencloud.com>
To: Tomisław Kityński <hataraku@wp.pl>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: SMALLINT vs short or... int?
Date: Fri, 15 Feb 2008 01:45:12 +1300
Message-ID: <47B437D8.1000804@opencloud.com> (raw)
In-Reply-To: <47B4304F.5060204@wp.pl>
References: <47B4304F.5060204@wp.pl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, hataraku@wp.pl
Subject: Re: SMALLINT vs short or... int?
In-Reply-To: <47B437D8.1000804@opencloud.com>
References: <47B4304F.5060204@wp.pl> <47B437D8.1000804@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox