public void addChild(SqlValidatorNamespace ns, String alias) { super.addChild(ns, alias); if ((usingScope != null) && (usingScope != parent)) { // We're looking at a join within a join. Recursively add this // child to its parent scope too. Example: // // select * // from (a join b on expr1) // join c on expr2 // where expr3 // // 'a' is a child namespace of 'a join b' and also of // 'a join b join c'. usingScope.addChild(ns, alias); } }
public void addChild(SqlValidatorNamespace ns, String alias) { super.addChild(ns, alias); if ((usingScope != null) && (usingScope != parent)) { // We're looking at a join within a join. Recursively add this // child to its parent scope too. Example: // // select * // from (a join b on expr1) // join c on expr2 // where expr3 // // 'a' is a child namespace of 'a join b' and also of // 'a join b join c'. usingScope.addChild(ns, alias); } }