提交 69a0b1ca 编写于 作者: wmmhello's avatar wmmhello

fix error if there is a ? in sql

上级 dea42054
...@@ -53,7 +53,7 @@ SSqlInfo qSqlParse(const char *pStr) { ...@@ -53,7 +53,7 @@ SSqlInfo qSqlParse(const char *pStr) {
Parse(pParser, 0, t0, &sqlInfo); Parse(pParser, 0, t0, &sqlInfo);
goto abort_parse; goto abort_parse;
} }
case TK_QUESTION:
case TK_ILLEGAL: { case TK_ILLEGAL: {
snprintf(sqlInfo.msg, tListLen(sqlInfo.msg), "unrecognized token: \"%s\"", t0.z); snprintf(sqlInfo.msg, tListLen(sqlInfo.msg), "unrecognized token: \"%s\"", t0.z);
sqlInfo.valid = false; sqlInfo.valid = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册