use of lucee.runtime.sql.old.ZFromItem in project Lucee by lucee.
the class HSQLUtil method getInvokedTables.
private void getInvokedTables(ZQuery query, Set<String> tablesNames) {
// print.out("qry:"+query.getSet());
Vector tables = query.getFrom();
Enumeration e = tables.elements();
// from
while (e.hasMoreElements()) {
ZFromItem fromItem = (ZFromItem) e.nextElement();
tablesNames.add(fromItem.getFullName());
}
// where
ZExp where = query.getWhere();
if (where instanceof ZExpression) {
parseZExpression((ZExpression) where, tablesNames);
}
// set
ZExpression set = query.getSet();
if (set != null) {
isUnion = true;
ZExp op = set.getOperand(0);
if (op instanceof ZQuery)
getInvokedTables((ZQuery) op, tablesNames);
}
}
Aggregations