mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-28 11:53:43 +03:00
Fix stale Dprintfs in pqpath.c referring to 'status'
This commit is contained in:
parent
db9082b6e4
commit
ff4c52f435
|
@ -1601,7 +1601,7 @@ pq_fetch(cursorObject *curs, int no_result)
|
||||||
case PGRES_NONFATAL_ERROR:
|
case PGRES_NONFATAL_ERROR:
|
||||||
case PGRES_FATAL_ERROR:
|
case PGRES_FATAL_ERROR:
|
||||||
Dprintf("pq_fetch: uh-oh, something FAILED: status = %d pgconn = %p",
|
Dprintf("pq_fetch: uh-oh, something FAILED: status = %d pgconn = %p",
|
||||||
status, curs->conn);
|
pgstatus, curs->conn);
|
||||||
pq_raise(curs->conn, curs, NULL);
|
pq_raise(curs->conn, curs, NULL);
|
||||||
ex = -1;
|
ex = -1;
|
||||||
break;
|
break;
|
||||||
|
@ -1609,7 +1609,7 @@ pq_fetch(cursorObject *curs, int no_result)
|
||||||
default:
|
default:
|
||||||
/* PGRES_COPY_BOTH, PGRES_SINGLE_TUPLE, future statuses */
|
/* PGRES_COPY_BOTH, PGRES_SINGLE_TUPLE, future statuses */
|
||||||
Dprintf("pq_fetch: got unsupported result: status = %d pgconn = %p",
|
Dprintf("pq_fetch: got unsupported result: status = %d pgconn = %p",
|
||||||
status, curs->conn);
|
pgstatus, curs->conn);
|
||||||
PyErr_Format(NotSupportedError,
|
PyErr_Format(NotSupportedError,
|
||||||
"got server response with unsupported status %s",
|
"got server response with unsupported status %s",
|
||||||
PQresStatus(curs->pgres == NULL ?
|
PQresStatus(curs->pgres == NULL ?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user