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:40:47 +0000 (14:40 +0200)
commit1325b239b9e862cc31de2af363f1b73f0d15d920
tree0d4a3c9c48d22c0ab133b213e4967fbcc38897cd
parent1aa526f3f18feb2434870b1f1c78cfc0aa87d56f
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