diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-10-11 22:17:47 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-10-11 22:29:03 +0100 |
commit | 71393b9ae96fecb0d6be24ccb8486526c1a7e102 (patch) | |
tree | 108f0cf03a8beaea73a28c555b9e769d26350c97 /psycopg/connection_int.c | |
parent | 5fbf3ef147046548031896b49a27a21d94efae30 (diff) | |
download | psycopg2-71393b9ae96fecb0d6be24ccb8486526c1a7e102.tar.gz |
Discard any result produced by cursor.executemany()
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r-- | psycopg/connection_int.c | 2 |
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; } |