[td-168] merge develop
This commit is contained in:
parent
c7215cf1c8
commit
45ec7eaf53
|
@ -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
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -730,7 +730,7 @@ void tscCloseTscObj(STscObj* pObj) {
|
|||
tfree(pObj);
|
||||
}
|
||||
|
||||
bool tscIsInsertOrImportData(char* sqlstr) {
|
||||
bool tscIsInsertData(char* sqlstr) {
|
||||
int32_t index = 0;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue