pgsql: Fix copy-paste mistake in PQcancelCreate - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Fix copy-paste mistake in PQcancelCreate
Date
Msg-id [email protected]
Whole thread Raw
List 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 <[email protected]>
Reported-by: Noah Misch <[email protected]>
Discussion: https://postgr.es/m/[email protected]

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(-)


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Add context type field to pg_backend_memory_contexts
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Remove useless extern keywords