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

In version 1.3.172, a performance regression was introduced...

上级 9a1c8fe2
......@@ -393,9 +393,7 @@ public abstract class Query extends Prepared {
if (ec2 instanceof ExpressionColumn) {
ExpressionColumn c2 = (ExpressionColumn) ec2;
String ta = exprCol.getSQL();
// exprCol.getTableAlias();
String tb = c2.getSQL();
// getTableAlias();
String s2 = c2.getColumnName();
found = db.equalsIdentifiers(col, s2);
if (!db.equalsIdentifiers(ta, tb)) {
......@@ -431,6 +429,7 @@ public abstract class Query extends Prepared {
expressionSQL.add(sql);
}
o.columnIndexExpr = ValueExpression.get(ValueInt.get(idx + 1));
o.expression = expressions.get(idx);
}
}
......
......@@ -1128,14 +1128,6 @@ public class Select extends Query {
if (condition != null) {
condition.mapColumns(resolver, level);
}
if (orderList != null) {
for (SelectOrderBy order : orderList) {
Expression e = order.expression;
if (e != null) {
e.mapColumns(resolver, level);
}
}
}
}
@Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论