提交 cf3b1b12 编写于 作者: Y yihaoDeng

reset code

上级 9cd45522
......@@ -1345,12 +1345,15 @@ int tsParseSql(SSqlObj *pSql, bool initial) {
}
// make a backup as tsParseInsertSql may modify the string
// char* sqlstr = strdup(pSql->sqlstr);
char* sqlstr = strdup(pSql->sqlstr);
ret = tsParseInsertSql(pSql);
if (/*(sqlstr == NULL) || */(pSql->parseRetry >= 1) ||
if ((sqlstr == NULL) || (pSql->parseRetry >= 1) ||
(ret != TSDB_CODE_TSC_SQL_SYNTAX_ERROR && ret != TSDB_CODE_TSC_INVALID_SQL)) {
free(sqlstr);
} else {
tscResetSqlCmd(pCmd, true);
free(pSql->sqlstr);
pSql->sqlstr = sqlstr;
pSql->parseRetry++;
if ((ret = tsInsertInitialCheck(pSql)) == TSDB_CODE_SUCCESS) {
ret = tsParseInsertSql(pSql);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册