BigDecimal Bugs - Mailing list pgsql-jdbc

From mailing-list@urbanet.ch
Subject BigDecimal Bugs
Date
Msg-id 20020324160205.D5AA1474E42@postgresql.org
Whole thread Raw
Responses Re: BigDecimal Bugs
List pgsql-jdbc
Hi,

I've found 2 bugs related with BigDecimal in the JDBC driver.

The first bug occurs when you call Array.toArray on a column containing an
array of NUMERIC. The returned java array is wrong with all BigDecimal
stored in the first element.

The second bug is in PreparedStatement.setBigDecimal. If you pass a null
object as argument, the method raises a NullPointerException.

Attached are the 2 diff files to correct those bugs.

Kudos to all postgresql developers for their great job!

Florian
Attachment

pgsql-jdbc by date:

Previous
From: "David Hooker"
Date:
Subject: Two Phase commits
Next
From: Tim Lewis
Date:
Subject: Re: "No results were returned by the query" exception