Permalink
Browse files

[bugfix] Query optimizer did not descend into „update …“ expressions.

  • Loading branch information...
1 parent 69cb056 commit 8943f5c431af5a747540ef1c9bb6a24108cdb62f @wolfgangmm wolfgangmm committed Jan 27, 2014
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/org/exist/xquery/update/Modification.java
@@ -46,12 +46,7 @@
import org.exist.storage.txn.Txn;
import org.exist.util.LockException;
import org.exist.util.hashtable.Int2ObjectHashMap;
-import org.exist.xquery.AbstractExpression;
-import org.exist.xquery.AnalyzeContextInfo;
-import org.exist.xquery.Cardinality;
-import org.exist.xquery.Expression;
-import org.exist.xquery.XPathException;
-import org.exist.xquery.XQueryContext;
+import org.exist.xquery.*;
import org.exist.xquery.value.Item;
import org.exist.xquery.value.NodeValue;
import org.exist.xquery.value.Sequence;
@@ -110,6 +105,14 @@ public void resetState(boolean postOptimization) {
{value.resetState(postOptimization);}
}
+ @Override
+ public void accept(ExpressionVisitor visitor) {
+ select.accept(visitor);
+ if (value != null) {
+ value.accept(visitor);
+ }
+ }
+
/* (non-Javadoc)
* @see org.exist.xquery.Expression#analyze(org.exist.xquery.Expression, int)
*/

0 comments on commit 8943f5c

Please sign in to comment.