From 3813df6c2eb00182580826579d87fb644054d881 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Fri, 24 Dec 2021 04:38:49 -0500 Subject: [PATCH] TD-12506 merge 3.0 --- source/client/src/clientImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index da401ebcc6..a508962325 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -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; -- GitLab