]> 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:35:39 +0000 (14:35 +0200)
commit49ef4eba20b606f0b30084492e45ed25ece928e4
treeebbe05381ef7cb1d7921fe3da0edacdc4c712930
parent10059c2da7ee2a355e261ed5e56dcec4657e01aa
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