From fdb90b94c88deead21fc04c9248948a271caa4a2 Mon Sep 17 00:00:00 2001 From: xywang Date: Tue, 16 Nov 2021 16:18:38 +0800 Subject: [PATCH] [TS-618]: added one more check to differentiate normal and abnormal conditions --- src/client/src/tscAsync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscAsync.c b/src/client/src/tscAsync.c index 82be24cff3..3e636cdc7b 100644 --- a/src/client/src/tscAsync.c +++ b/src/client/src/tscAsync.c @@ -236,7 +236,7 @@ void taos_fetch_rows_a(TAOS_RES *tres, __async_cb_func_t fp, void *param) { return; } - if (pRes->qId == 0) { + if (pRes->qId == 0 && pSql->cmd.command != TSDB_SQL_RETRIEVE_EMPTY_RESULT) { tscError("qhandle is invalid"); pRes->code = TSDB_CODE_TSC_INVALID_QHANDLE; tscAsyncResultOnError(pSql); -- GitLab