Skip to content
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

in...SQL语句解析问题 #2407

Closed
dingqianlong opened this issue Mar 13, 2018 · 1 comment
Closed

in...SQL语句解析问题 #2407

dingqianlong opened this issue Mar 13, 2018 · 1 comment
Labels
Milestone

Comments

@dingqianlong
Copy link

druid 1.1.9

SQL:
String sql = "SELECT name FROM employee WHERE no in ('1', '2');";
String sql = "SELECT name FROM employee WHERE no in (1, 2);";

解析结果:
coditions : [employee.no IN (1, 2)]

存在的问题:
以上两个SQL中in列表元素不一样但是解析出的coditions却一样。解析结果中in列表元素去掉了引号,导致无法辨别原SQL中的in列表元素是否使用了引号。

修改意见:
解析结果in列表元素应保留原始格式。

@wenshao wenshao added the Bug label Mar 19, 2018
@wenshao wenshao added this to the 1.1.10 milestone Mar 19, 2018
@wenshao
Copy link
Member

wenshao commented May 27, 2018

https://github.com/alibaba/druid/releases/tag/1.1.10
问题修复,请用新版本

@wenshao wenshao closed this as completed May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants