Skip to content

Commit 126deac

Browse files
committed
[bugfix] Make sure to optimise Path Expressions that are visited by the BasicExpressionVisitor. One example, is that expressions inside of Extension Expressions were not previously optimised.
1 parent 48f2c0b commit 126deac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exist-core/src/main/java/org/exist/xquery/BasicExpressionVisitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ protected void processWrappers(final Expression expr) {
116116
expr instanceof DynamicCardinalityCheck ||
117117
expr instanceof DynamicNameCheck ||
118118
expr instanceof DynamicTypeCheck ||
119-
expr instanceof UntypedValueCheck) {
119+
expr instanceof UntypedValueCheck ||
120+
expr instanceof PathExpr) {
120121
expr.accept(this);
121122
}
122123
}

0 commit comments

Comments
 (0)