From a1ee69d148e135452469d985bd21de7687f9ce0d Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Wed, 21 Aug 2024 18:32:45 +0800 Subject: [PATCH] stmt2/example: use stmt2's close instead of stmt --- tests/script/api/stmt2-example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/script/api/stmt2-example.c b/tests/script/api/stmt2-example.c index d5949a6f4c..b91c6831bf 100644 --- a/tests/script/api/stmt2-example.c +++ b/tests/script/api/stmt2-example.c @@ -44,7 +44,7 @@ void do_stmt(TAOS* taos) { int code = taos_stmt2_prepare(stmt, sql, 0); if (code != 0) { printf("failed to execute taos_stmt2_prepare. error:%s\n", taos_stmt2_error(stmt)); - taos_stmt_close(stmt); + taos_stmt2_close(stmt); return; }