Add support for multiple error messages from libpq, by simply appending them

Magnus Hagander <magnus@hagander.net>

Commit: f3a0688ace40f012f4de95b7b722fbfbb802bea9
Author: Magnus Hagander <magnus@hagander.net>
Date: 2008-10-27T09:42:31Z
Releases: 8.4.0
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.

Files