Parse the rowcount as long

This commit is contained in:
Daniele Varrazzo 2014-05-13 14:00:59 +01:00
parent 755a5b143f
commit 96d6260706
2 changed files with 2 additions and 2 deletions

View File

@ -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};

View File

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