提交 678cc06f 编写于 作者: H Haojun Liao

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

上级 89abdd98
...@@ -3463,13 +3463,12 @@ static void tscSubqueryRetrieveCallback(void* param, TAOS_RES* tres, int code) { ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册