View Single Post

   
  #5 (permalink)  
Old 04-17-2008, 11:38 PM
jtv@xs4all.nl
 
Posts: n/a
Default Re: patch: garbage error strings in libpq

Neil Conway wrote:

> Per C99 6.5.2.2.10, a sequence point occurs between the evaluation of
> the arguments to a function and the call of the function itself.
> Therefore a sequence point occurs before the call to libpq_gettext(). So
> ISTM having libpq_gettext() preserve errno should work.


In C99, at least. But that's not the dialect postgres is written in; even
gcc 4.0 leaves C99 support turned off by default.

Does anyone know what the situation is in C89, or whatever the applicable
standard is?


Jeroen



---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply With Quote