Reset error message at PQreset()
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Oct 2014 12:32:01 +0000 (14:32 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Oct 2014 12:36:19 +0000 (14:36 +0200)
commit8f7bd8e91da321cb38f09087a4b9411277917b13
treee911e71dc15577ee010f9533d03d3754765407a7
parent4d1c738d10c914729c9a08951ad546c8a6701664
Reset error message at PQreset()

If you call PQreset() repeatedly, and the connection cannot be
re-established, the error messages from the failed connection attempts
kept accumulating in the error string.

Fixes bug #11455 reported by Caleb Epstein. Backpatch to all supported
versions.
src/interfaces/libpq/fe-connect.c