protected boolean isSubQueryOrParamOrVariant(SQLPropertyExpr x) { SQLObject resolvedOwnerObject = x.getResolvedOwnerObject(); if (resolvedOwnerObject instanceof SQLSubqueryTableSource || resolvedOwnerObject instanceof SQLWithSubqueryClause.Entry) { return true; } SQLExpr owner = x.getOwner(); if (owner instanceof SQLIdentifierExpr) { if (isSubQueryOrParamOrVariant((SQLIdentifierExpr) owner)) { return true; } } SQLTableSource tableSource = x.getResolvedTableSource(); if (tableSource instanceof SQLExprTableSource) { SQLExprTableSource exprTableSource = (SQLExprTableSource) tableSource; if (exprTableSource.getSchemaObject() != null) { return false; } SQLExpr expr = exprTableSource.getExpr(); if (expr instanceof SQLIdentifierExpr) { return isSubQueryOrParamOrVariant((SQLIdentifierExpr) expr); } if (expr instanceof SQLPropertyExpr) { return isSubQueryOrParamOrVariant((SQLPropertyExpr) expr); } } return false; }
SQLName table = (SQLName) owner; SQLObject resolvedOwnerObject = propertyExpr.getResolvedOwnerObject(); if (resolvedOwnerObject instanceof SQLSubqueryTableSource || resolvedOwnerObject instanceof SQLCreateProcedureStatement
if (x.getResolvedOwnerObject() instanceof SQLParameter) { return false;
protected boolean isSubQueryOrParamOrVariant(SQLPropertyExpr x) { SQLObject resolvedOwnerObject = x.getResolvedOwnerObject(); if (resolvedOwnerObject instanceof SQLSubqueryTableSource || resolvedOwnerObject instanceof SQLWithSubqueryClause.Entry) { return true; } SQLExpr owner = x.getOwner(); if (owner instanceof SQLIdentifierExpr) { if (isSubQueryOrParamOrVariant((SQLIdentifierExpr) owner)) { return true; } } SQLTableSource tableSource = x.getResolvedTableSource(); if (tableSource instanceof SQLExprTableSource) { SQLExprTableSource exprTableSource = (SQLExprTableSource) tableSource; if (exprTableSource.getSchemaObject() != null) { return false; } SQLExpr expr = exprTableSource.getExpr(); if (expr instanceof SQLIdentifierExpr) { return isSubQueryOrParamOrVariant((SQLIdentifierExpr) expr); } if (expr instanceof SQLPropertyExpr) { return isSubQueryOrParamOrVariant((SQLPropertyExpr) expr); } } return false; }
SQLName table = (SQLName) owner; SQLObject resolvedOwnerObject = propertyExpr.getResolvedOwnerObject(); if (resolvedOwnerObject instanceof SQLSubqueryTableSource || resolvedOwnerObject instanceof SQLCreateProcedureStatement
if (x.getResolvedOwnerObject() instanceof SQLParameter) { return false;