Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TBUQ4-0007e9-I3 for pgsql-jdbc@postgresql.org; Tue, 11 Sep 2012 17:38:40 +0000 Received: from auth-smtp.nebula.fi ([217.30.180.105]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TBUQ1-0002nS-BK for pgsql-jdbc@postgresql.org; Tue, 11 Sep 2012 17:38:40 +0000 Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q8BHcZKT015489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 11 Sep 2012 20:38:36 +0300 Message-ID: <504F771B.2000909@nitorcreations.com> Date: Tue, 11 Sep 2012 20:38:35 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal References: <504F144C.20108@docsea.com> In-Reply-To: <504F144C.20108@docsea.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201209/9 X-Sequence-Number: 23245 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