code:
rc = SQLFreeStmt(odbcHandle.hStmt, SQL_CLOSE);
rc = SQLExecDirect(odbcHandle.hStmt, (unsigned char*) sqlCommand,SQL_NTS);
if(HasSqlError(odbcHandle, rc, ExecDirect, sqlCommand))
{
DebugMsg("SQLExecDirect fail when get all vlan record"
return false;
}
for(rc=SQLFetch(odbcHandle.hStmt);
rc==SQL_SUCCESS;
rc=SQLFetch(odbcHandle.hStmt))
{
}
....
when after some SQLFetch, the next call to SQLFETCH let function exit, but not enter the code after for, of course,there isnt any return statement in for circle.
why?
how to resolve?
rc = SQLFreeStmt(odbcHandle.hStmt, SQL_CLOSE);
rc = SQLExecDirect(odbcHandle.hStmt, (unsigned char*) sqlCommand,SQL_NTS);
if(HasSqlError(odbcHandle, rc, ExecDirect, sqlCommand))
{
DebugMsg("SQLExecDirect fail when get all vlan record"
return false;
}
for(rc=SQLFetch(odbcHandle.hStmt);
rc==SQL_SUCCESS;
rc=SQLFetch(odbcHandle.hStmt))
{
}
....
when after some SQLFetch, the next call to SQLFETCH let function exit, but not enter the code after for, of course,there isnt any return statement in for circle.
why?
how to resolve?