1
0
Fork 0

Recurse into subqueries to dig for nodes; thus the test gets a flat representation.

This commit is contained in:
Willi Goesgens 2014-09-03 17:14:21 +02:00
parent ec67a07f9b
commit 49ff0423f0
1 changed files with 4 additions and 0 deletions

View File

@ -432,6 +432,10 @@ function findExecutionNodes(plan, nodetype) {
matches.push(node); matches.push(node);
} }
else if (node.type === "SubqueryNode") {
var subPlan = {"plan" : node.subquery};
matches = matches.concat(findExecutionNodes(subPlan, nodetype));
}
}); });
return matches; return matches;
} }