提交 3f93f4ae authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Remove unnecessary condition

上级 a5144433
...@@ -11,7 +11,6 @@ import java.util.Iterator; ...@@ -11,7 +11,6 @@ import java.util.Iterator;
import org.h2.command.dml.Select; import org.h2.command.dml.Select;
import org.h2.command.dml.SelectGroups; import org.h2.command.dml.SelectGroups;
import org.h2.command.dml.SelectOrderBy;
import org.h2.engine.Session; import org.h2.engine.Session;
import org.h2.expression.Expression; import org.h2.expression.Expression;
import org.h2.message.DbException; import org.h2.message.DbException;
...@@ -405,8 +404,7 @@ public class WindowFunction extends DataAnalysisOperation { ...@@ -405,8 +404,7 @@ public class WindowFunction extends DataAnalysisOperation {
throw DbException.getSyntaxError(sql, sql.length() - 1); throw DbException.getSyntaxError(sql, sql.length() - 1);
} }
} }
ArrayList<SelectOrderBy> orderBy = over.getOrderBy(); if (over.getOrderBy() == null) {
if (orderBy == null || orderBy.isEmpty()) {
switch (type) { switch (type) {
case RANK: case RANK:
case DENSE_RANK: case DENSE_RANK:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论