diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 88644107d4139af3f227b217a009b4371dee1b60..9d8f2fab74090c84faa9ee8dc4e8809dbb584af5 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -3857,6 +3857,16 @@ static void tscSubqueryCompleteCallback(void* param, TAOS_RES* tres, int code) { return; } + if (pSql->cmd.command == TSDB_SQL_RETRIEVE_EMPTY_RESULT) { + SSqlObj* pParentSql = ps->pParentSql; + + pParentSql->cmd.command = TSDB_SQL_RETRIEVE_EMPTY_RESULT; + + (*pParentSql->fp)(pParentSql->param, pParentSql, 0); + return; + } + + taos_fetch_rows_a(tres, tscSubqueryRetrieveCallback, param); }