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 <postgres@jeltef.nl> Reported-by: Noah Misch <noah@leadboat.com> Discussion: https://postgr.es/m/20240630190040.26.nmisch@google.com
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-cancel.c | modified | +1 −1 |
Discussion
- Add non-blocking version of PQcancel 146 messages · 2022-01-12 → 2024-12-23