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)
commit7b4cf0a097ca1e9439a5881b2cdd6a8f7f9d8f5b
tree87419494be346f2cf9b069808707379e32ca85fe
parentb29e5e43ff0ed5d32550cddb5e0340de693233e9
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