Merge pull request #23872 from freemine/freemine.empty-set-check

bugFix: stop complaining with  when there's no resultset after taos_q…
This commit is contained in:
dapan1121 2023-12-04 09:26:58 +08:00 committed by GitHub
commit c45f25d1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}