Skip site navigation (1) Skip section navigation (2)

Re: Calling functions with smallint fails

From: Markus Schaber <schabios(at)logi-track(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Calling functions with smallint fails
Date: 2004-10-25 09:15:08
Message-ID: 20041025111508.136cf88d@kingfisher.intern.logi-track.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi, Kris,

On Thu, 21 Oct 2004 13:59:54 -0500 (EST)
Kris Jurka <books(at)ejurka(dot)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(at)logi-track(dot)com | www.logi-track.com

In response to

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2004-10-25 09:16:24
Subject: Re: Problems with protocol V3 after migration to latest driver
Previous:From: Kris JurkaDate: 2004-10-25 08:06:42
Subject: Re: Problems with protocol V3 after migration to latest driver

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group