[td-168] merge develop

This commit is contained in:
hjxilinx 2020-05-02 22:18:32 +08:00
parent c7215cf1c8
commit 45ec7eaf53
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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).

View File

@ -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);
}

View File

@ -730,7 +730,7 @@ void tscCloseTscObj(STscObj* pObj) {
tfree(pObj);
}
bool tscIsInsertOrImportData(char* sqlstr) {
bool tscIsInsertData(char* sqlstr) {
int32_t index = 0;
do {