Sha256: fd17fb69193e225fb4885444161996f4acd8eefe9dfdc44665703abe2aaf00d3
Contents?: true
Size: 1.08 KB
Versions: 27
Compression:
Stored size: 1.08 KB
Contents
module Sequel module Progress module DatabaseMethods # Progress uses the :progress database type. def database_type :progress end def dataset(opts = nil) ds = super ds.extend(DatasetMethods) ds end end module DatasetMethods SELECT_CLAUSE_METHODS = Dataset.clause_methods(:select, %w'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 def select_clause_methods SELECT_CLAUSE_METHODS end # 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] #sql << " TOP #{@opts[:limit]}" if @opts[:limit] end end end end
Version data entries
27 entries across 27 versions & 2 rubygems