[td-4546]<fix>: fix bug in taos_fetch_block while nest query existed.

This commit is contained in:
Haojun Liao 2021-06-06 16:09:58 +08:00
parent 89abdd9809
commit 678cc06fbb
1 changed files with 6 additions and 7 deletions

View File

@ -3463,13 +3463,12 @@ static void tscSubqueryRetrieveCallback(void* param, TAOS_RES* tres, int code) {
} }
pParentSql->cmd.active = pParentSql->cmd.pQueryInfo; pParentSql->cmd.active = pParentSql->cmd.pQueryInfo;
pParentSql->res.qId = -1;
SSchedMsg schedMsg = {0}; if (pSql->res.code == TSDB_CODE_SUCCESS) {
schedMsg.fp = doRetrieveSubqueryData; (*pSql->fp)(pParentSql->param, pParentSql, pParentSql->res.numOfRows);
schedMsg.ahandle = (void *)pParentSql; } else {
schedMsg.thandle = (void *)1; tscAsyncResultOnError(pParentSql);
schedMsg.msg = 0; }
taosScheduleTask(tscQhandle, &schedMsg);
} }
// todo handle the failure // todo handle the failure