Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit49ef4eb

Browse files
committed
Reset error message at PQreset()
If you call PQreset() repeatedly, and the connection cannot bere-established, the error messages from the failed connection attemptskept accumulating in the error string.Fixes bug #11455 reported by Caleb Epstein. Backpatch to all supportedversions.
1 parent10059c2 commit49ef4eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,6 +2663,7 @@ closePGconn(PGconn *conn)
26632663
* absent */
26642664
conn->asyncStatus=PGASYNC_IDLE;
26652665
pqClearAsyncResult(conn);/* deallocate result and curTuple */
2666+
resetPQExpBuffer(&conn->errorMessage);
26662667
pg_freeaddrinfo_all(conn->addrlist_family,conn->addrlist);
26672668
conn->addrlist=NULL;
26682669
conn->addr_cur=NULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp