]> granicus.if.org Git - postgresql/commit
Add support for multiple error messages from libpq, by simply appending them
authorMagnus Hagander <magnus@hagander.net>
Mon, 27 Oct 2008 09:42:31 +0000 (09:42 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 27 Oct 2008 09:42:31 +0000 (09:42 +0000)
commitf3a0688ace40f012f4de95b7b722fbfbb802bea9
tree019516bcd16b11fb1b73c297e1be1cc6a9b87da0
parent0fec77ae88ea17555001dd7d6de16db27f742cbe
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.
doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/libpq-int.h