Find a Bug
when a learn bussines, it's a bug , as follow:
int beforeExcuteNum = getAllNewRowNum();
excute()
int afterExcuteNum = getAllNewRowNum();
if (afterExcuteNum > beforeExcuteNum)
{
do something;
return true;
}
else
{
log(ErrorInfo);
return false;
}
beforeExcuteNum is 0, afterExcuteNum is 0zero too, but in excute , i insert a new row success, so getAllNewRowNum seems can't work correctly.so tomorrow i should debug this question. see what happen in this function. wait for me , i should go back now.