Skip site navigation (1) Skip section navigation (2)

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

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: Michael Meskes <meskes(at)postgresql(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: NaN/Inf fix for ECPG Re: out-of-scope cursor errors
Date: 2010-01-30 10:09:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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

Attachment: pg85-ecpg-fix-nan-inf-4-ctxdiff.patch
Description: text/x-patch (44.0 KB)

In response to


pgsql-hackers by date

Next:From: Ivan Sergio BorgonovoDate: 2010-01-30 10:57:27
Subject: development setup and libdir
Previous:From: Peter EisentrautDate: 2010-01-30 09:33:43
Subject: Re: PG 9.0 and standard_conforming_strings

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group