Sha256: e6ea9b2f117c5e94f6417ceaf7132a54b72e1927df29dcbf63b24e24fdc221d6

Contents?: true

Size: 305 Bytes

Versions: 5

Compression:

Stored size: 305 Bytes

Contents

# 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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
spiral_form-0.1.1 vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/ibm_db.rb
spiral_form-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/ibm_db.rb
nullifyable-0.1.0 vendor/bundle/gems/arel-9.0.0/lib/arel/visitors/ibm_db.rb
arel-9.0.0 lib/arel/visitors/ibm_db.rb
arel-8.0.0 lib/arel/visitors/ibm_db.rb