diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index ec4f2c1daf4cd35a984f7e2f2cf4dab8f47659f8..7a7f83901b13d6e3d66e6c241fc004c156aec4d2 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4154,7 +4154,8 @@ static void tscSubqueryCompleteCallback(void* param, TAOS_RES* tres, int code) { } int32_t doInitSubState(SSqlObj* pSql, int32_t numOfSubqueries) { - assert(pSql->subState.numOfSub == 0 && pSql->pSubs == NULL && pSql->subState.states == NULL); + //bug fix. Above doInitSubState level, the loop invocation with the same SSqlObj will be fail. + //assert(pSql->subState.numOfSub == 0 && pSql->pSubs == NULL && pSql->subState.states == NULL); pSql->subState.numOfSub = numOfSubqueries; pSql->pSubs = calloc(pSql->subState.numOfSub, POINTER_BYTES);