mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sqlwall
This commit is contained in:
@@ -2153,7 +2153,18 @@ public class WallVisitorUtils {
|
||||
SQLTableSource from = queryBlock.getFrom();
|
||||
|
||||
if (from == null) {
|
||||
return true;
|
||||
boolean itemIsConst = true;
|
||||
for (SQLSelectItem item : queryBlock.getSelectList()) {
|
||||
if (item.getExpr() instanceof SQLIdentifierExpr || item.getExpr() instanceof SQLPropertyExpr) {
|
||||
itemIsConst = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (itemIsConst) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (from instanceof SQLExprTableSource) {
|
||||
|
||||
Reference in New Issue
Block a user