Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal
Дата
Msg-id
505700FA020000250004A461@gw.wicourts.gov
Ответ на
Список
Дерево обсуждения
Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal DocSea - Patrice Delorme <pdelorme@docsea.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal DocSea - Patrice Delorme <pdelorme@docsea.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal "David Johnston" <polobo@yahoo.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal Craig Ringer <ringerc@ringerc.id.au>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal Dave Cramer <pg@fastcrypt.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal Florent Guillaume <fg@nuxeo.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal "David Johnston" <polobo@yahoo.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal "David Johnston" <polobo@yahoo.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal Luis Flores <luiscamposflores@gmail.com>
Re: Bug : FAST_NUMBER_FAILED when getting NaN on BigDecimal Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Craig Ringer  wrote:
> On 09/12/2012 05:00 PM, DocSea - Patrice Delorme wrote:
 
>> Maybe a more explicit Exception like "numeric NaN values not
>> supported" and not "org.postgresql.util.PSQLException: Bad value
>> for type BigDecimal : NaN;" which is rather obscure
> 
> Certainly some improvement to the message is warranted. I'm not
> sure I like the proposed one though. Maybe "BigDecimal cannot
> represent NaN, so the NUMERIC 'NaN' from PostgreSQL could not be
> returned." ?
 
For comparison, you can invoke the BigDecimal(double) constructor
with Double.NaN without any compile error, and at run time you get
this:
 
    java.lang.NumberFormatException: Infinite or NaN
 
How differently do we want to treat this than the all-Java parallel
situation?
 
-Kevin

В списке pgsql-jdbc по дате отправления
От: Craig Ringer
Дата:
От: Craig Ringer
Дата:
FAQ