class OracleSqlParser::Ast::GroupByClause

Public Instance Methods

to_sql(options ={}) click to toggle source
# File lib/oracle-sql-parser/ast/group_by_clause.rb, line 3
def to_sql(options ={})
  result = "group by #{@ast[:targets].to_sql(:separator => ',')}"
  if @ast[:having]
    result += " having #{@ast[:having].to_sql}"
  end
  result
end