Module: OracleSqlParser::Grammar::Select::Union::UnionOrIntersectOrMinus3

Defined in:
lib/oracle-sql-parser/grammar/select/union.rb

Instance Method Summary collapse

Instance Method Details

#astObject



141
142
143
144
145
146
147
148
149
# File 'lib/oracle-sql-parser/grammar/select/union.rb', line 141

def ast
  if respond_to? :union
    union.ast
  elsif respond_to? :intersect
    OracleSqlParser::Ast::Array[intersect.ast]
  elsif respond_to? :minus
    OracleSqlParser::Ast::Array[minus.ast]
  end
end