diff options
author | Federico Di Gregorio <fog@initd.org> | 2005-12-06 05:55:58 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2005-12-06 05:55:58 +0000 |
commit | 5ea2fa636fa43eecf8d5d8f2d4b826f077fc1bcb (patch) | |
tree | fc4bd824258adc068fc76856539e7072040c2fe6 /psycopg/pqpath.c | |
parent | 127c14809cb0c04d8b1a291c2306d95181b9dc45 (diff) | |
download | psycopg2-5ea2fa636fa43eecf8d5d8f2d4b826f077fc1bcb.tar.gz |
Better DictCursor.
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); |