From: Markus Schaber <schabios@logi-track.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Calling functions with smallint fails
Date: Mon, 25 Oct 2004 11:15:08 +0200
Message-ID: <20041025111508.136cf88d@kingfisher.intern.logi-track.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0410211358590.8130@leary.csoft.net>
References: <C768B1F0-2392-11D9-83CE-000A9590B78E@unit12.net>
<Pine.BSO.4.56.0410211358590.8130@leary.csoft.net>
Hi, Kris,
On Thu, 21 Oct 2004 13:59:54 -0500 (EST)
Kris Jurka <books@ejurka.com> wrote:
> > From a basic examination of the code, it seems that setShort(int,
> > short) simply serializes the value to a string, making it
> > indistinguishable from an integer.
>
> This has been fixed in the 8.0 driver series as all calls are now strongly
> typed.
And this just broke the persistence abstraction layer in one of our
legacy apps, as they use code like setString(i, obj.toString()) for
everything including Number types. :-(
Now, we have an additional reason to throw this crappy code away, and
replace it with hibernate :-)
Thanks for your great work.
Markus
--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com
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: schabios@logi-track.com
Subject: Re: Calling functions with smallint fails
In-Reply-To: <20041025111508.136cf88d@kingfisher.intern.logi-track.com>
References: <C768B1F0-2392-11D9-83CE-000A9590B78E@unit12.net> <Pine.BSO.4.56.0410211358590.8130@leary.csoft.net> <20041025111508.136cf88d@kingfisher.intern.logi-track.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