-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法解析CONCAT #1982
Comments
我也遇到同样的问题,db2环境下。1.0.11版本是正常的,但是升级后就报concat解析错误了。试了一下最新的1.1也不行。 |
@jayzch 你的sql from前多了一个逗号吧 |
@wenshao 不是的。我只是粘贴的时候把无关查询字段删了 |
我们使用的时候,是用druid解析sql的特性,不是单纯使用连接池 |
wenshao
added a commit
that referenced
this issue
Sep 19, 2017
问题已重现,会尽快发布新版本,可能在周末,也可能在国庆 |
求发 |
https://github.com/alibaba/druid/releases/tag/1.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在1.0.31版本下和1.1.3版本下均不能解析如下语句。
select ID, AUTHORITY_TYPE from t_authority a where authority_type like CONCAT('%', ?)
报错如下
Caused by: com.alibaba.druid.sql.parser.ParserException: ERROR. pos 209, line 1, column 203, token CONCAT
at com.alibaba.druid.sql.parser.SQLExprParser.primary(SQLExprParser.java:697)
at com.alibaba.druid.sql.parser.SQLExprParser.bitXor(SQLExprParser.java:133)
at com.alibaba.druid.sql.parser.SQLExprParser.multiplicative(SQLExprParser.java:213)
at com.alibaba.druid.sql.parser.SQLExprParser.additive(SQLExprParser.java:1577)
The text was updated successfully, but these errors were encountered: