From aa16de637325c905737f87e4aac9d79b1d539ea9 Mon Sep 17 00:00:00 2001 From: freemine Date: Thu, 30 Nov 2023 07:52:59 +0800 Subject: [PATCH] bugFix: stop complaining with when there's no resultset after taos_query --- source/client/src/clientMain.c | 4 ++++ 1 file changed, 4 insertions(+) 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); }