]> 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:41:32 +0000 (14:41 +0200)
commitfcca871203568a4d34bc026029bee51e8d246ae2
treee974d98376ee211b38f710a1403109b48e560455
parentd1f8e7a01501c71db3ee0bcd19aab79b1ddc662e
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