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.

 

posted on 2011-09-21 18:58  子虚乌有  阅读(206)  评论(0)    收藏  举报