mirror of https://gitee.com/bigwinds/arangodb
Recurse into subqueries to dig for nodes; thus the test gets a flat representation.
This commit is contained in:
parent
ec67a07f9b
commit
49ff0423f0
|
@ -432,6 +432,10 @@ function findExecutionNodes(plan, nodetype) {
|
|||
|
||||
matches.push(node);
|
||||
}
|
||||
else if (node.type === "SubqueryNode") {
|
||||
var subPlan = {"plan" : node.subquery};
|
||||
matches = matches.concat(findExecutionNodes(subPlan, nodetype));
|
||||
}
|
||||
});
|
||||
return matches;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue