diff options
Diffstat (limited to 'psycopg/pqpath.c')
-rw-r--r-- | psycopg/pqpath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c index 111069f..4ee8781 100644 --- a/psycopg/pqpath.c +++ b/psycopg/pqpath.c @@ -815,6 +815,7 @@ pq_fetch(cursorObject *curs) else #endif ex = _pq_copy_out(curs); + curs->rowcount = -1; /* error caught by out glorious notice handler */ if (PyErr_Occurred()) ex = -1; IFCLEARPGRES(curs->pgres); @@ -828,6 +829,7 @@ pq_fetch(cursorObject *curs) else #endif ex = _pq_copy_in(curs); + curs->rowcount = -1; /* error caught by out glorious notice handler */ if (PyErr_Occurred()) ex = -1; IFCLEARPGRES(curs->pgres); |