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

Commit6d2ac55

Browse files
committed
Fix copy-paste mistake in PQcancelCreate
When an OOM occurred, this function was incorrectly setting a status ofCONNECTION_BAD on the passed in PGconn instead of on the newly createdPGcancelConn.Mistake introduced with61461a3. Backpatch to 17.Author: Jelte Fennema-Nio <postgres@jeltef.nl>Reported-by: Noah Misch <noah@leadboat.com>Discussion:https://postgr.es/m/20240630190040.26.nmisch@google.com
1 parent0f934b0 commit6d2ac55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ PQcancelCreate(PGconn *conn)
155155
return (PGcancelConn*)cancelConn;
156156

157157
oom_error:
158-
conn->status=CONNECTION_BAD;
158+
cancelConn->status=CONNECTION_BAD;
159159
libpq_append_conn_error(cancelConn,"out of memory");
160160
return (PGcancelConn*)cancelConn;
161161
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp