From: Christian Cryder <c.s.cryder@gmail.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: smallint mapping issue
Date: Wed, 27 Jul 2005 13:21:04 -0600
Message-ID: <90876a9e0507271221246714ac@mail.gmail.com> (raw)
Hi guys,
Dave tells me this has been discussed recently, but doesn't recall the
thread, so I'll post here.
In postgresql-8.0-311.jdbc3.jar with a column defined as smallint, the
corresponding value returned from getObject() is a Short.
In the current HEAD, that same smallint column is returned as an Integer.
This causes HUGE problems if it's not an oversight, as it makes it
virtually impossible to write JDBC code that works with other dbs
(which typically return Short).
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: c.s.cryder@gmail.com
Subject: Re: smallint mapping issue
In-Reply-To: <90876a9e0507271221246714ac@mail.gmail.com>
References: <90876a9e0507271221246714ac@mail.gmail.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