INTERNAL
If called the subquery is part of the WHERE clause of an UPDATE or
DELETE statement that does not define an identification variable.
The method checks the clauses of the subquery for unqualified fields
accesses.
subqueryParseTree.getFromNode().qualifyAttributeAccess(context);
subqueryParseTree.getQueryNode().qualifyAttributeAccess(context);
if (subqueryParseTree.getWhereNode() != null) {
subqueryParseTree.getWhereNode().qualifyAttributeAccess(context);
}
if (subqueryParseTree.getGroupByNode() != null) {
subqueryParseTree.getGroupByNode().qualifyAttributeAccess(context);
}
if (subqueryParseTree.getHavingNode() != null) {
subqueryParseTree.getHavingNode().qualifyAttributeAccess(context);
}
return this;
subqueryParseTree.validate(context);
outerVars = context.getOuterScopeVariables();
SelectNode selectNode = (SelectNode)subqueryParseTree.getQueryNode();
// Get the select expression, subqueries only have one
Node selectExpr = (Node)selectNode.getSelectExpressions().get(0);
setType(selectExpr.getType());