diff --git a/src/client/inc/tscUtil.h b/src/client/inc/tscUtil.h index 88988796e97d943768bd3e83ab509455d1549b0e..2b53342e74feece2ecf2920e79234ef9cd52fb35 100644 --- a/src/client/inc/tscUtil.h +++ b/src/client/inc/tscUtil.h @@ -136,7 +136,7 @@ void addRequiredTagColumn(STableMetaInfo* pTableMetaInfo, SColumnIndex* index); int32_t tscSetTableId(STableMetaInfo* pTableMetaInfo, SSQLToken* pzTableName, SSqlObj* pSql); void tscClearInterpInfo(SQueryInfo* pQueryInfo); -bool tscIsInsertOrImportData(char* sqlstr); +bool tscIsInsertData(char* sqlstr); /* use for keep current db info temporarily, for handle table with db prefix */ // todo remove it diff --git a/src/client/src/tscParseInsert.c b/src/client/src/tscParseInsert.c index 9d2458cbc4f18460747aa4af0b8547536f185437..ab1869d233e496bc513c560757498eb5b628f936 100644 --- a/src/client/src/tscParseInsert.c +++ b/src/client/src/tscParseInsert.c @@ -1307,7 +1307,7 @@ int tsParseSql(SSqlObj *pSql, bool initialParse) { tscTrace("continue parse sql: %s", pSql->cmd.curSql); } - if (tscIsInsertOrImportData(pSql->sqlstr)) { + if (tscIsInsertData(pSql->sqlstr)) { /* * Set the fp before parse the sql string, in case of getTableMeta failed, in which * the error handle callback function can rightfully restore the user-defined callback function (fp). diff --git a/src/client/src/tscPrepare.c b/src/client/src/tscPrepare.c index 548c9392b06337f8ae541fbc4afcf07e2c0b42d3..fdd032d373fd16f124acaf6b79a7edc12526118d 100644 --- a/src/client/src/tscPrepare.c +++ b/src/client/src/tscPrepare.c @@ -510,7 +510,7 @@ int taos_stmt_prepare(TAOS_STMT* stmt, const char* sql, unsigned long length) { strtolower(sqlstr, sqlstr); pStmt->pSql->sqlstr = sqlstr; - if (tscIsInsertOrImportData(sqlstr)) { + if (tscIsInsertData(sqlstr)) { pStmt->isInsert = true; return insertStmtPrepare(pStmt); } diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 9a739333d4ba82dc98fb23d436ef3abb9745007b..8324a7470a0f0325e352e6417b00a429f0e36101 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -730,7 +730,7 @@ void tscCloseTscObj(STscObj* pObj) { tfree(pObj); } -bool tscIsInsertOrImportData(char* sqlstr) { +bool tscIsInsertData(char* sqlstr) { int32_t index = 0; do {