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

Simplify logic in Select.isEverything()

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