提交 bb6b0f32 编写于 作者: S shenglian zhou

(insert): remove the sql escape conversion in taos_stmt_set_tbname_tag since...

(insert): remove the sql escape conversion in taos_stmt_set_tbname_tag since it have been done in tscValidateName
上级 15f48ecc
......@@ -1849,18 +1849,7 @@ int taos_stmt_set_tbname_tags(TAOS_STMT* stmt, const char* name, TAOS_BIND* tags
tscResetSqlCmd(pCmd, false, pSql->self);
pCmd->insertParam.pTableBlockHashList = hashList;
}
int32_t sqlLen = (int32_t)strlen(pStmt->pSql->sqlstr);
char* sqlstr = pStmt->pSql->sqlstr;
pStmt->pSql->sqlstr = calloc(1, sqlLen + 1);
if (pSql->sqlstr == NULL) {
tscError("0x%"PRIx64" failed to malloc sql string buffer", pSql->self);
free(tname.z);
STMT_RET(TSDB_CODE_TSC_OUT_OF_MEMORY);
}
strntolower(pStmt->pSql->sqlstr, sqlstr, sqlLen);
free(sqlstr);
code = tsParseSql(pStmt->pSql, true);
if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册