Re: [BUGS] [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows
Date
Msg-id 24525.1506523199@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows  (Kohei KaiGai <kaigai@heterodb.com>)
List pgsql-bugs
Kohei KaiGai <kaigai@heterodb.com> writes:
> Does it make sense to put a check of "isinf(val)" and ereport prior to
> the snprintf()?

Yeah, that was my reaction too.  Obviously this wasn't thought about
in the original coding ...
        regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Kohei KaiGai
Date:
Subject: Re: [BUGS] [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] [BUGS] BUG #14825: enum type: unsafe use?