From e6c777ebcf9435150acbefdf53fe18d5188da87f Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 19 Sep 2024 12:33:12 +0800 Subject: [PATCH 1/3] fix(stmt2/settags): rebind tags from empty nonnull pCreateTbReq --- source/client/src/clientStmt2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientStmt2.c b/source/client/src/clientStmt2.c index 51d3df5de8..4ceb17b1ea 100644 --- a/source/client/src/clientStmt2.c +++ b/source/client/src/clientStmt2.c @@ -1001,7 +1001,7 @@ int stmtSetTbTags2(TAOS_STMT2* stmt, TAOS_STMT2_BIND* tags) { STMT_ERR_RET(TSDB_CODE_APP_ERROR); } - if (pStmt->bInfo.inExecCache && (!pStmt->sql.autoCreateTbl || (*pDataBlock)->pData->pCreateTbReq)) { + if (pStmt->bInfo.inExecCache && (!pStmt->sql.autoCreateTbl /*|| (*pDataBlock)->pData->pCreateTbReq*/)) { return TSDB_CODE_SUCCESS; } From 73e590ef1d27bdf8f652405e69240dc1fde910e6 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 19 Sep 2024 12:34:57 +0800 Subject: [PATCH 2/3] remove comment --- source/client/src/clientStmt2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientStmt2.c b/source/client/src/clientStmt2.c index 4ceb17b1ea..74644a4969 100644 --- a/source/client/src/clientStmt2.c +++ b/source/client/src/clientStmt2.c @@ -1001,7 +1001,7 @@ int stmtSetTbTags2(TAOS_STMT2* stmt, TAOS_STMT2_BIND* tags) { STMT_ERR_RET(TSDB_CODE_APP_ERROR); } - if (pStmt->bInfo.inExecCache && (!pStmt->sql.autoCreateTbl /*|| (*pDataBlock)->pData->pCreateTbReq*/)) { + if (pStmt->bInfo.inExecCache && (!pStmt->sql.autoCreateTbl)) { return TSDB_CODE_SUCCESS; } From add35916ae987302645e102c9483b6087176265b Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 19 Sep 2024 12:36:02 +0800 Subject: [PATCH 3/3] cleanup --- source/client/src/clientStmt2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientStmt2.c b/source/client/src/clientStmt2.c index 74644a4969..a9738e4e9c 100644 --- a/source/client/src/clientStmt2.c +++ b/source/client/src/clientStmt2.c @@ -1001,7 +1001,7 @@ int stmtSetTbTags2(TAOS_STMT2* stmt, TAOS_STMT2_BIND* tags) { STMT_ERR_RET(TSDB_CODE_APP_ERROR); } - if (pStmt->bInfo.inExecCache && (!pStmt->sql.autoCreateTbl)) { + if (pStmt->bInfo.inExecCache && !pStmt->sql.autoCreateTbl) { return TSDB_CODE_SUCCESS; }