diff --git a/src/client/src/tscPrepare.c b/src/client/src/tscPrepare.c index e4ed16518f87fee2463d2e474a79243dfd703ca7..ea6ad8a48d7a9c4b5e992dffe8329735a0f47512 100644 --- a/src/client/src/tscPrepare.c +++ b/src/client/src/tscPrepare.c @@ -1534,10 +1534,10 @@ int stmtGenInsertStatement(SSqlObj* pSql, STscStmt* pStmt, const char* name, TAO } int32_t stmtValidateValuesFields(SSqlCmd *pCmd, char * sql) { - int32_t loopCont = 1, index0 = 0, values = 0; + int32_t index0 = 0, values = 0; SStrToken sToken; - while (loopCont) { + while (1) { sToken = tStrGetToken(sql, &index0, false); if (sToken.n <= 0) { return TSDB_CODE_SUCCESS;