summaryrefslogtreecommitdiff
path: root/psycopg/pqpath.c
diff options
context:
space:
mode:
authorOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-10-27 12:16:41 +0100
committerOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-10-27 12:16:41 +0100
commit4b9a6f48f33f9f80a1a12850f5029bf7ab97145b (patch)
tree3d7ceeac706f3afc1edb59d4c7d0456eb0a98f35 /psycopg/pqpath.c
parent8b79bf43ace9b7d09f16b4c829c96a6c1784dacf (diff)
parentfe4cb0d49353f56328b9981a5140ecda65e972b4 (diff)
downloadpsycopg2-4b9a6f48f33f9f80a1a12850f5029bf7ab97145b.tar.gz
Merge branch 'master' into feature/replication-protocol
Diffstat (limited to 'psycopg/pqpath.c')
-rw-r--r--psycopg/pqpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c
index 6315417..760fc97 100644
--- a/psycopg/pqpath.c
+++ b/psycopg/pqpath.c
@@ -1900,7 +1900,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;
@@ -1908,7 +1908,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 ?