提交 68643ee6 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Simplify logic in Select.isEverything()

上级 bf7f5876
...@@ -1435,20 +1435,18 @@ public class Select extends Query { ...@@ -1435,20 +1435,18 @@ public class Select extends Query {
default: default:
} }
ExpressionVisitor v2 = visitor.incrementQueryLevel(1); ExpressionVisitor v2 = visitor.incrementQueryLevel(1);
boolean result = true;
for (Expression e : expressions) { for (Expression e : expressions) {
if (!e.isEverything(v2)) { if (!e.isEverything(v2)) {
result = false; return false;
break;
} }
} }
if (result && condition != null && !condition.isEverything(v2)) { if (condition != null && !condition.isEverything(v2)) {
result = false; return false;
} }
if (result && having != null && !having.isEverything(v2)) { if (having != null && !having.isEverything(v2)) {
result = false; return false;
} }
return result; return true;
} }
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论