bugFix: stop complaining with when there's no resultset after taos_query

This commit is contained in:
freemine 2023-11-30 07:52:59 +08:00
parent e34deca2ba
commit aa16de6373
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}