Reset error message at PQreset()

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 8f7bd8e91da321cb38f09087a4b9411277917b13
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-10-29T12:36:19Z
Releases: 9.1.15
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.

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +1 −0