Sha256: 775191d3598c9dbf57b10ed24e9df0b090113bbec309bf218245144f88adb98e

Contents?: true

Size: 1019 Bytes

Versions: 22

Compression:

Stored size: 1019 Bytes

Contents

module Sequel
  module Progress
    module DatabaseMethods
      extend Sequel::Database::ResetIdentifierMangling

      # Progress uses the :progress database type.
      def database_type
        :progress
      end
    end
  
    module DatasetMethods
      Dataset.def_sql_method(self, :select, %w'select limit distinct columns from join where group order having compounds')

      # Progress requires SQL standard datetimes
      def requires_sql_standard_datetimes?
        true
      end

      # Progress does not support INTERSECT or EXCEPT
      def supports_intersect_except?
        false
      end

      private

      # Progress uses TOP for limit, but it is only supported in Progress 10.
      # The Progress adapter targets Progress 9, so it silently ignores the option.
      def select_limit_sql(sql)
        raise(Error, "OFFSET not supported") if @opts[:offset]
        # if l = @opts[:limit]
        #   sql << " TOP "
        #   literal_append(sql, l)
        # end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
sequel-4.30.0 lib/sequel/adapters/shared/progress.rb
sequel-4.29.0 lib/sequel/adapters/shared/progress.rb
sequel-4.28.0 lib/sequel/adapters/shared/progress.rb
sequel-4.27.0 lib/sequel/adapters/shared/progress.rb
sequel-4.26.0 lib/sequel/adapters/shared/progress.rb
sequel-4.25.0 lib/sequel/adapters/shared/progress.rb
sequel-4.24.0 lib/sequel/adapters/shared/progress.rb
sequel-4.23.0 lib/sequel/adapters/shared/progress.rb
sequel-4.22.0 lib/sequel/adapters/shared/progress.rb
sequel-4.21.0 lib/sequel/adapters/shared/progress.rb
sequel-4.20.0 lib/sequel/adapters/shared/progress.rb
sequel-4.19.0 lib/sequel/adapters/shared/progress.rb
sequel-4.18.0 lib/sequel/adapters/shared/progress.rb
sequel-4.17.0 lib/sequel/adapters/shared/progress.rb
sequel-4.16.0 lib/sequel/adapters/shared/progress.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/progress.rb
sequel-4.15.0 lib/sequel/adapters/shared/progress.rb
sequel-4.14.0 lib/sequel/adapters/shared/progress.rb
sequel-4.13.0 lib/sequel/adapters/shared/progress.rb
sequel-4.12.0 lib/sequel/adapters/shared/progress.rb