Module: OracleSqlParser::Grammar::Delete::DeleteTarget2

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

Instance Method Summary collapse

Instance Method Details

#astObject



197
198
199
200
201
202
203
204
205
206
207
# File 'lib/oracle-sql-parser/grammar/delete.rb', line 197

def ast
  table_or_subquery = t.ast
  if table_or_subquery.instance_of? OracleSqlParser::Ast::DeleteTarget
    table_or_subquery
  else
    OracleSqlParser::Ast::DeleteTarget[
      :name => t.ast,
      :alias => a.try(:t_alias).ast,
    ]
  end
end