]> granicus.if.org Git - postgresql/commit
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:34:43 +0000 (14:34 +0200)
commit8f8314b56003877185fb817c847c7c9609621d0c
tree08e298e9dd5acc5f46dd7a619f3b817fe39c5cfe
parenta00d468e658a245823083b9ac2e423a659a03802
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