diff options
author | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-26 17:39:39 +0100 |
---|---|---|
committer | Oleksandr Shulgin <oleksandr.shulgin@zalando.de> | 2015-10-26 17:40:39 +0100 |
commit | fe4cb0d49353f56328b9981a5140ecda65e972b4 (patch) | |
tree | f2275d58e4ba77d40516c158433b98f3f954dab1 /psycopg/pqpath.c | |
parent | 6763578cc0371fcada1ecc6f6bf7be70220d515b (diff) | |
download | psycopg2-fe4cb0d49353f56328b9981a5140ecda65e972b4.tar.gz |
Fix stale Dprintfs in pqpath.c referring to 'status'
Diffstat (limited to 'psycopg/pqpath.c')
-rw-r--r-- | psycopg/pqpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c index 6e78805..b643512 100644 --- a/psycopg/pqpath.c +++ b/psycopg/pqpath.c @@ -1601,7 +1601,7 @@ pq_fetch(cursorObject *curs, int no_result) case PGRES_NONFATAL_ERROR: case PGRES_FATAL_ERROR: Dprintf("pq_fetch: uh-oh, something FAILED: status = %d pgconn = %p", - status, curs->conn); + pgstatus, curs->conn); pq_raise(curs->conn, curs, NULL); ex = -1; break; @@ -1609,7 +1609,7 @@ pq_fetch(cursorObject *curs, int no_result) default: /* PGRES_COPY_BOTH, PGRES_SINGLE_TUPLE, future statuses */ Dprintf("pq_fetch: got unsupported result: status = %d pgconn = %p", - status, curs->conn); + pgstatus, curs->conn); PyErr_Format(NotSupportedError, "got server response with unsupported status %s", PQresStatus(curs->pgres == NULL ? |