summaryrefslogtreecommitdiff
path: root/psycopg/connection_int.c
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2012-10-11 22:17:47 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2012-10-11 22:29:03 +0100
commit71393b9ae96fecb0d6be24ccb8486526c1a7e102 (patch)
tree108f0cf03a8beaea73a28c555b9e769d26350c97 /psycopg/connection_int.c
parent5fbf3ef147046548031896b49a27a21d94efae30 (diff)
downloadpsycopg2-71393b9ae96fecb0d6be24ccb8486526c1a7e102.tar.gz
Discard any result produced by cursor.executemany()
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r--psycopg/connection_int.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c
index a93c233..ad49575 100644
--- a/psycopg/connection_int.c
+++ b/psycopg/connection_int.c
@@ -896,7 +896,7 @@ conn_poll(connectionObject *self)
/* fetch the tuples (if there are any) and build the result. We
* don't care if pq_fetch return 0 or 1, but if there was an error,
* we want to signal it to the caller. */
- if (pq_fetch(curs) == -1) {
+ if (pq_fetch(curs, 0) == -1) {
res = PSYCO_POLL_ERROR;
}