if (rangeGroup.getRangeVariables().length > rangeCount) {
RangeVariable[] rangeVars =
(RangeVariable[]) ArrayUtil.resizeArray(
rangeGroup.getRangeVariables(), rangeCount);
rangeGroup = new RangeGroupSimple(rangeVars,
rangeGroup);
}
rangeGroups =
(RangeGroup[]) ArrayUtil.toAdjustedArray(rangeGroups,
rangeGroup, rangeGroups.length, 1);
rangeGroup = new RangeGroupSimple(table);
rangeCount = 0;
}
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] == null) {
continue;
}
unresolvedSet = nodes[i].resolveColumnReferences(session,
rangeGroup, rangeCount, rangeGroups,
unresolvedSet, acceptsSequences);
}
return unresolvedSet;
}
}
for (int i = 0; i < nodes.length; i++) {
if (nodes[i] == null) {
continue;
}
unresolvedSet = nodes[i].resolveColumnReferences(session,
rangeGroup, rangeCount, rangeGroups, unresolvedSet,
acceptsSequences);
}
switch (opType) {
case OpTypes.ARRAY :
break;
case OpTypes.ARRAY_SUBQUERY :
case OpTypes.ROW_SUBQUERY :
case OpTypes.TABLE_SUBQUERY : {
RangeVariable[] rangeVars = rangeGroup.getRangeVariables();
if (rangeVars.length > rangeCount) {
rangeVars =
(RangeVariable[]) ArrayUtil.resizeArray(rangeVars,
rangeCount);
rangeGroup = new RangeGroupSimple(rangeVars, rangeGroup);
}
rangeGroups =
(RangeGroup[]) ArrayUtil.toAdjustedArray(rangeGroups,
rangeGroup, rangeGroups.length, 1);