aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/ibm_db.rb
blob: f1d126790db534818a04690956695aa8503e8623 (plain) (blame)
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