summaryrefslogtreecommitdiff
path: root/psycopg/pqpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'psycopg/pqpath.c')
-rw-r--r--psycopg/pqpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c
index 641a5af..62b8c15 100644
--- a/psycopg/pqpath.c
+++ b/psycopg/pqpath.c
@@ -1509,7 +1509,8 @@ pq_fetch(cursorObject *curs, int no_result)
default:
Dprintf("pq_fetch: uh-oh, something FAILED: pgconn = %p", curs->conn);
pq_raise(curs->conn, curs, NULL);
- IFCLEARPGRES(curs->pgres);
+ /* don't clear curs->pgres, because it contains detailed error
+ information */
ex = -1;
break;
}