-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
where中 table_name.column_name in (?,?)无法解析表达式 #214
Labels
Comments
public final boolean visit(final SQLPropertyExpr x) {
//对于in表达式,它的parent是null,所以没有解析出来。
if (!(x.getParent() instanceof SQLBinaryOpExpr) && !(x.getParent() instanceof SQLSelectItem)) {
return super.visit(x);
}
if (!(x.getOwner() instanceof SQLIdentifierExpr)) {
return super.visit(x);
}
String tableOrAliasName = ((SQLIdentifierExpr) x.getOwner()).getLowerName();
if (getParseContext().isBinaryOperateWithAlias(x, tableOrAliasName)) {
return super.visit(x);
}
printToken(tableOrAliasName);
print(".");
print(x.getName());
return false;
} |
应该怎么修,可以大概解释下吗,我可以来改 |
druid 新版本已经修复了这个bug,可以将 sjdbc 的 druid 依赖升级吗 |
hanahmily
pushed a commit
that referenced
this issue
Jan 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
select * from tbl where tbl.id in (?, ?)
里面的tbl.id in (?, )
tbl 没有被解析出来。日志如下
The text was updated successfully, but these errors were encountered: