aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/visitors/ibm_db.rb
blob: e85a5a08a7fcc4f94c01df2a760a50176d2a29df (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                             




                                        



                                             




         
# frozen_string_literal: true
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