Re: NaN/Inf fix for ECPG Re: out-of-scope cursor errors

Поиск
Список
Период
Сортировка
От Boszormenyi Zoltan
Тема Re: NaN/Inf fix for ECPG Re: out-of-scope cursor errors
Дата
Msg-id 4B64055E.6070008@cybertec.at
обсуждение исходный текст
Ответ на NaN/Inf fix for ECPG Re: out-of-scope cursor errors  (Boszormenyi Zoltan <zb@cybertec.at>)
Ответы Re: NaN/Inf fix for ECPG Re: out-of-scope cursor errors  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
Boszormenyi Zoltan írta:
> - different UNIX(-like) platforms write out different strings in printf()
>   for a double variable storing. NaN. E.g.: Linux: "nan",
>   Solaris: "NaN", AIX: "NaNQ"
>

After I sent it and reread my mail, I realized that my fix
wouldn't be enough because of the above: ECPG uses sprintf()
for float and double, and just like in the backend, a common
code to send "NaN" and +/- "Infinity" to the server is needed.
New patch is attached.

Best regards,
Zoltán Böszörményi

--
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: PG 9.0 and standard_conforming_strings
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: development setup and libdir