pgsql: Fix copy-paste mistake in PQcancelCreate

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix copy-paste mistake in PQcancelCreate
Date: 2024-07-01 11:59:31
Message-ID: E1sOFgw-003n0f-U6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix copy-paste mistake in PQcancelCreate

When an OOM occurred, this function was incorrectly setting a status of
CONNECTION_BAD on the passed in PGconn instead of on the newly created
PGcancelConn.

Mistake introduced with 61461a300c1c. Backpatch to 17.

Author: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Reported-by: Noah Misch <noah(at)leadboat(dot)com>
Discussion: https://postgr.es/m/20240630190040.26.nmisch@google.com

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6d2ac554911d874e4d0609f5b2c5f34a1226ee0c

Modified Files
--------------
src/interfaces/libpq/fe-cancel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-07-01 14:46:32 pgsql: Remove useless extern keywords
Previous Message David Rowley 2024-07-01 09:19:18 pgsql: Add context type field to pg_backend_memory_contexts