diff options
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; } |