[GENERAL] PQerrorMessage documentation

Поиск
Список
Период
Сортировка
От Igor Korot
Тема [GENERAL] PQerrorMessage documentation
Дата
Msg-id CA+FnnTym8Z44-MjkwvrEQANBdTiA_zLtvbjW6hg=J+shstc98g@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] PQerrorMessage documentation  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-general
Hi, ALL,
[quote]
Nearly all libpq functions will set a message for PQerrorMessage if
they fail. Note that by libpq convention, a nonempty PQerrorMessage
result can consist of multiple lines, and will include a trailing
newline. The caller should not free the result directly. It will be
freed when the associated PGconn handle is passed to PQfinish. The
result string should not be expected to remain the same across
operations on the PGconn structure.
[/quote]

Since there may be multiple errors, I presume that in this case the string
will end with just \0, correct? It's not going to be \0\0 like with MSVC.

Thank you.


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

Предыдущее
От: Igor Korot
Дата:
Сообщение: Re: [GENERAL] Compatibility of libpg
Следующее
От: James Sewell
Дата:
Сообщение: Re: [GENERAL] Generalized pg_stat_statements?