]> 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:39:10 +0000 (14:39 +0200)
commit1a27fbd075e8671e0f8a98b3f12b35e86c41109b
treee4b9504193bde7fc0bfca86d9c448fa11bf5ede8
parent604d94d4cacc787bfa41452785a2927c24829fc5
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