Parse the rowcount as long

This commit is contained in:
Daniele Varrazzo 2014-05-13 14:00:59 +01:00
parent 35545e7374
commit d0b35adeb6
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,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};

View File

@ -1274,7 +1274,7 @@ _read_rowcount(cursorObject *curs)
if (!rowcount || !rowcount[0]) {
curs->rowcount = -1;
} else {
curs->rowcount = atoi(rowcount);
curs->rowcount = atol(rowcount);
}
}