improve sqlwall

This commit is contained in:
Yako
2014-08-26 14:23:01 +08:00
parent 5a5225f33e
commit 192a683339
2 changed files with 50 additions and 1 deletions
@@ -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) {