-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
mysql 解析出错 #1407
Milestone
Comments
mysql支持这样的语法哈。。 |
mysql所有减法解析都会出错啊 |
应该是减法是解析bufPos没有+1,直接continue了 |
是的有这个问题,问题重现了 |
MySqlLexer |
问题重现并且解决,谢谢反馈 |
wenshao
added a commit
to wenshao/druid
that referenced
this issue
Sep 11, 2016
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
druidt版本1.0.25
减号语法出错,bufPos值错误
String sql = "SELECT t.id-t.id from system_conn t ";
System.out.println(sql);
SQLStatementParser parse = SQLParserUtils.createSQLStatementParser(sql, dbType);
List list = parse.parseStatementList();
SQLStatement stmt = list.get(0);
System.out.println(SQLUtils.toSQLString(stmt,dbType));
执行结果:SELECT t.id-.id
FROM system_conn t
减号后面表名t被删除了
druidt版本1.0.18不会有这个问题
The text was updated successfully, but these errors were encountered: