mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-24 18:03:43 +03:00
Parse the rowcount as long
This commit is contained in:
parent
755a5b143f
commit
96d6260706
|
@ -497,7 +497,7 @@ psyco_curs_executemany(cursorObject *self, PyObject *args, PyObject *kwargs)
|
|||
{
|
||||
PyObject *operation = NULL, *vars = NULL;
|
||||
PyObject *v, *iter = NULL;
|
||||
int rowcount = 0;
|
||||
long rowcount = 0;
|
||||
|
||||
static char *kwlist[] = {"query", "vars_list", NULL};
|
||||
|
||||
|
|
|
@ -1241,7 +1241,7 @@ _read_rowcount(cursorObject *curs)
|
|||
if (!rowcount || !rowcount[0]) {
|
||||
curs->rowcount = -1;
|
||||
} else {
|
||||
curs->rowcount = atoi(rowcount);
|
||||
curs->rowcount = atol(rowcount);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user