[TD-2460]

This commit is contained in:
Haojun Liao 2020-12-16 15:11:55 +08:00
parent a9583d82cd
commit d4f9459a20
1 changed files with 6 additions and 9 deletions

View File

@ -2501,15 +2501,12 @@ void tscBuildResFromSubqueries(SSqlObj *pSql) {
tscRestoreSQLFuncForSTableQuery(pQueryInfo); tscRestoreSQLFuncForSTableQuery(pQueryInfo);
} }
while (1) { assert (pRes->row >= pRes->numOfRows);
assert (pRes->row >= pRes->numOfRows); doBuildResFromSubqueries(pSql);
if (pRes->code == TSDB_CODE_SUCCESS) {
doBuildResFromSubqueries(pSql); (*pSql->fp)(pSql->param, pSql, pRes->numOfRows);
if (pRes->code == TSDB_CODE_SUCCESS) { } else {
(*pSql->fp)(pSql->param, pSql, pRes->numOfRows); tscQueueAsyncRes(pSql);
} else {
tscQueueAsyncRes(pSql);
}
} }
} }