diff --git a/source/client/src/clientMain.c b/source/client/src/clientMain.c index 2091bcf64f..a5150a9f78 100644 --- a/source/client/src/clientMain.c +++ b/source/client/src/clientMain.c @@ -1308,6 +1308,10 @@ void taos_fetch_rows_a(TAOS_RES *res, __taos_async_fn_t fp, void *param) { } SRequestObj *pRequest = res; + if (TSDB_SQL_RETRIEVE_EMPTY_RESULT == pRequest->type) { + fp(param, res, 0); + return; + } taosAsyncFetchImpl(pRequest, fp, param); }