提交 b868c336 authored 作者: Thomas Mueller's avatar Thomas Mueller

In version 1.3.172, a performance regression was introduced when fixing the…

In version 1.3.172, a performance regression was introduced when fixing the issue 389 (when there is a multi-column primary key, H2 does not seem to always pick the right index). This was related to boosting an index that matches the "order by" column list (the wrong index was used in some cases).
上级 3bfff839
...@@ -1130,7 +1130,10 @@ public class Select extends Query { ...@@ -1130,7 +1130,10 @@ public class Select extends Query {
} }
if (orderList != null) { if (orderList != null) {
for (SelectOrderBy order : orderList) { for (SelectOrderBy order : orderList) {
order.expression.mapColumns(resolver, level); Expression e = order.expression;
if (e != null) {
e.mapColumns(resolver, level);
}
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论