diff options
| author | Magnus Hagander <magnus@hagander.net> | 2008-10-27 09:42:31 +0000 |
|---|---|---|
| committer | Magnus Hagander <magnus@hagander.net> | 2008-10-27 09:42:31 +0000 |
| commit | f3a0688ace40f012f4de95b7b722fbfbb802bea9 (patch) | |
| tree | 019516bcd16b11fb1b73c297e1be1cc6a9b87da0 /doc/src | |
| parent | 0fec77ae88ea17555001dd7d6de16db27f742cbe (diff) | |
Add support for multiple error messages from libpq, by simply appending them
after each other (since we already add a newline on each, this makes them
multiline).
Previously a new error would just overwrite the old one, so for example any
error caused when trying to connect with SSL enabled would be overwritten
by the error message form the non-SSL connection when using sslmode=prefer.
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/libpq.sgml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 2e13e1daa4f..0aa134f4cde 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.265 2008/09/22 14:21:44 tgl Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.266 2008/10/27 09:42:31 mha Exp $ --> <chapter id="libpq"> <title><application>libpq</application> - C Library</title> @@ -1137,10 +1137,11 @@ PQconninfoOption *PQconninfoParse(const char *conninfo, char **errmsg); Nearly all <application>libpq</> functions will set a message for <function>PQerrorMessage</function> if they fail. Note that by <application>libpq</application> convention, a nonempty - <function>PQerrorMessage</function> result will include a trailing - newline. The caller should not free the result directly. It will - be freed when the associated <structname>PGconn</> handle is passed - to <function>PQfinish</function>. The result string should not be + <function>PQerrorMessage</function> result can be multiple lines, + and will include a trailing newline. The caller should not free + the result directly. It will be freed when the associated + <structname>PGconn</> handle is passed to + <function>PQfinish</function>. The result string should not be expected to remain the same across operations on the <literal>PGconn</> structure. </para> |
