1 2 3 4 5 6 7 8 9 10 11 12 13 14
module Arel module Visitors class IBM_DB < Arel::Visitors::ToSql private def visit_Arel_Nodes_Limit o, collector collector << "FETCH FIRST " collector = visit o.expr, collector collector << " ROWS ONLY" end end end end