From 0b2f67e5b9408837c6b0ccfa7c61a62ecb2c7b7d Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Sun, 29 Aug 2021 14:44:27 +0800 Subject: [PATCH] remove registerSql from taos_stmt_prepare and taos_free_result --- src/client/src/tscPrepare.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/src/tscPrepare.c b/src/client/src/tscPrepare.c index e8cd9a257a..ff95b61fd8 100644 --- a/src/client/src/tscPrepare.c +++ b/src/client/src/tscPrepare.c @@ -1567,8 +1567,6 @@ int taos_stmt_prepare(TAOS_STMT* stmt, const char* sql, unsigned long length) { pRes->qId = 0; pRes->numOfRows = 1; - registerSqlObj(pSql); - strtolower(pSql->sqlstr, sql); tscDebugL("0x%"PRIx64" SQL: %s", pSql->self, pSql->sqlstr); @@ -1817,7 +1815,7 @@ int taos_stmt_close(TAOS_STMT* stmt) { } if (RID_VALID(pStmt->pSql->self)) { - taosReleaseRef(tscObjRef, pStmt->pSql->self); + taos_free_result(pStmt->pSql); } else { tscFreeSqlObj(pStmt->pSql); } -- GitLab