Subject: | number of affected rows out of integer range |
hi,when i used $sth->do get insert affected rows, it return nil ,and i check the rows is out of integer(4 bytes) range.
it seems to be caused by
dbdimp.h
int rows; /* number of affected rows */
dbdimp.c
int dbd_st_execute (SV * sth, imp_sth_t * imp_sth)
{
int ret = -2;
...
if (0 == strncmp(cmdStatus, "INSERT", 6)) {
/* INSERT(space)oid(space)numrows */
for (ret=8; cmdStatus[ret-1] != ' '; ret++) {
}
ret = atoi(cmdStatus + ret);
gotrows = DBDPG_TRUE;
}
return ret;