未验证 提交 be7a4259 编写于 作者: S slguan 提交者: GitHub

Merge pull request #704 from taosdata/feature/liaohj

add update check command type
......@@ -1824,10 +1824,8 @@ bool tscIsUpdateQuery(STscObj* pObj) {
return TSDB_CODE_DISCONNECTED;
}
SSqlCmd* pCmd = &(pObj->pSql->cmd);
if (pCmd->command >= TSDB_SQL_INSERT && pCmd->command <= TSDB_SQL_DROP_DNODE) {
return 1;
}
SSqlCmd* pCmd = &pObj->pSql->cmd;
return ((pCmd->command >= TSDB_SQL_INSERT && pCmd->command <= TSDB_SQL_DROP_DNODE) ||
TSDB_SQL_USE_DB == pCmd->command) ? 1 : 0;
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册