pgsql: Fix copy-paste mistake in PQcancelCreate
pgsql: Fix copy-paste mistake in PQcancelCreate
От:
Alvaro Herrera <alvherre@alvh.no-ip.org>
Дата:
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 Reported-by: Noah Misch Discussion: https://postgr.es/m/20240630190040.26.nmisch@google.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3497c87b05a6ba31e8d760591900d550b2ef98bc Modified Files -------------- src/interfaces/libpq/fe-cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)