Re: patch: garbage error strings in libpq

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: patch: garbage error strings in libpq
Дата
Msg-id 42CB8E7B.5080007@samurai.com
обсуждение исходный текст
Ответ на Re: patch: garbage error strings in libpq  (jtv@xs4all.nl)
Ответы Re: patch: garbage error strings in libpq
Список pgsql-patches
jtv@xs4all.nl wrote:
> (a) the C standard has added a sequence point between the arguments in a
> function call, which AFAIK wasn't there before, or the sequence point was
> there all along (and the compiler implements it);

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.

-Neil

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

Предыдущее
От: jtv@xs4all.nl
Дата:
Сообщение: Re: Error handling fix in interfaces/libpq/fe-secure.c
Следующее
От: "Michael Paesold"
Дата:
Сообщение: Re: Disable page writes when fsync off, add GUC