1 require 'arel/visitors/compat'
5 class Firebird < Arel::Visitors::ToSql
6 def visit_Arel_Nodes_SelectStatement o
8 o.cores.map { |x| visit_Arel_Nodes_SelectCore x }.join,
9 ("ORDER BY #{o.orders.map { |x| visit x }.join(', ')}" unless o.orders.empty?),
10 ("ROWS #{limit_for(o.limit)} " if o.limit),
11 ("TO #{o.offset} " if o.offset),