TD-12506 merge 3.0

This commit is contained in:
Xiaoyu Wang 2021-12-24 04:38:49 -05:00
parent b98c6f7e04
commit 3813df6c2e
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ TAOS_RES *taos_query_l(TAOS *taos, const char *sql, int sqlLen) {
_return:
qDestoryQuery(pQuery);
qDestroyQueryDag(pDag);
if (NULL != pRequest) {
if (NULL != pRequest && TSDB_CODE_SUCCESS != terrno) {
pRequest->code = terrno;
}
return pRequest;