Re: A bug in 7.3 jdbc driver

From: Kris Jurka <books(at)ejurka(dot)com>
To: Michael Andreasen <michael(at)dunlops(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: A bug in 7.3 jdbc driver
Date: 2003-11-03 05:53:18
Message-ID: Pine.LNX.4.33.0311030051450.32292-300000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Fri, 31 Oct 2003, Michael Andreasen wrote:

> Going a getObject() on a money field with a value over 1,000 causes an
> error;
>
> Bad Double 3,273.65
> at
> org.postgresql.jdbc1.AbstractJdbc1ResultSet.toDouble(AbstractJdbc1ResultSet.java:775)
> at
> org.postgresql.jdbc1.AbstractJdbc1ResultSet.getDouble(AbstractJdbc1ResultSet.java:159)
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2ResultSet.java:116)
>
> I guess it's the comma!

Here's a patch against cvs tip which fixes this bug. Also I've added a
test to the regression suite to future proof this fix.

Kris Jurka

Attachment Content-Type Size
money_test.patch text/plain 948 bytes
money_fix.patch text/plain 1.4 KB

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2003-11-03 06:21:55 Allow specifying server/port for the test suite
Previous Message Kris Jurka 2003-11-03 03:40:59 Re: DatabaseMetaData - getImportedKeys