X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F0EA03A3D48 for ; Mon, 25 Oct 2004 10:15:22 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08489-03 for ; Mon, 25 Oct 2004 09:15:18 +0000 (GMT) Received: from mail.logi-track.com (burro.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id 844AA3A3D35 for ; Mon, 25 Oct 2004 10:15:19 +0100 (BST) Received: from kingfisher.intern.logi-track.com (J0c30.j.pppool.de [85.74.12.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id CA2A5301B2; Mon, 25 Oct 2004 11:15:20 +0200 (CEST) Received: from kingfisher.intern.logi-track.com (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with SMTP id 7AA41AB7FA; Mon, 25 Oct 2004 11:15:11 +0200 (CEST) Date: Mon, 25 Oct 2004 11:15:08 +0200 From: Markus Schaber To: pgsql-jdbc@postgresql.org Subject: Re: Calling functions with smallint fails Message-ID: <20041025111508.136cf88d@kingfisher.intern.logi-track.com> In-Reply-To: References: Organization: logi-track ag, =?ISO-8859-15?Q?z=FCrich?= X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-pc-linux-gnu) X-Face: Nx5T&>Nj$VrVPv}sC3IL&)TqHHOKCz/|)R$i"*r@w0{*I6w; UNU_hdl1J4NI_m{IMztq=>cmM}1gCLbAF+9\#CGkG8}Y{x%SuQ>1#t:; Z(|\qdd[i]HStki~#w1$TPF}:0w-7"S\Ev|_a$K wrote: > > From a basic examination of the code, it seems that setShort(int,=20 > > short) simply serializes the value to a string, making it=20 > > indistinguishable from an integer. >=20 > This has been fixed in the 8.0 driver series as all calls are now strongl= y=20 > 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 :-) =20 Thanks for your great work. Markus --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com