In the curs_executemany function, when the condition of rowcount being greater than or equal to 0 is met, self->row changes, but the corresponding rowcount remains constant at 0.
e.x.
if (self->rowcount == -1)
rowcount = -1;
else if (rowcount >= 0)
rowcount += self->rowcount;
Py_DECREF(v);
In the curs_executemany function, when the condition of rowcount being greater than or equal to 0 is met, self->row changes, but the corresponding rowcount remains constant at 0.
e.x.
if (self->rowcount == -1)rowcount = -1;else if (rowcount >= 0)rowcount += self->rowcount;Py_DECREF(v);