From: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal
Date: Tue, 11 Sep 2012 20:38:35 +0300
Message-ID: <504F771B.2000909@nitorcreations.com> (raw)
In-Reply-To: <504F144C.20108@docsea.com>
References: <504F144C.20108@docsea.com>
On 09/11/2012 01:37 PM, DocSea - Patrice Delorme wrote:
> Hi,
>
> It is impossible to fetch data when numeric value in database is NaN
> It throws FAST_NUMBER_FAILED (postgresql-jdbc-9.1-902:AbstractJdbc2ResultSet:2176) because my value is not numeric (NaN).
> This is incorect behaviour since 'NaN' is a legal value in postgres for numeric type.
>
> problem is in postgresql-jdbc-9.1-902.jdbc4
> but it seems areound for ages... since I discovered it first in postgresql-8.3-603.jdbc3...
Can you provide a more concrete example code to show when the FAST_NUMBER_FAILED exception is seen by jdbc using application.
I did a quick look at the code and the exception in question looks like just a jdbc driver internal way to switch to slower parsing of input values when fast
parsing fails. It should never escape to applications.
-Mikko
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: mikko.tiihonen@nitorcreations.com
Subject: Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal
In-Reply-To: <504F771B.2000909@nitorcreations.com>
References: <504F144C.20108@docsea.com> <504F771B.2000909@nitorcreations.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