Class Index [+]

Quicksearch

ArJdbc::MsSQL::LimitHelpers::SqlServerAddLimitOffset

Public Instance Methods

add_limit_offset!(sql, options) click to toggle source
    # File lib/arjdbc/mssql/limit_helpers.rb, line 82
82:         def add_limit_offset!(sql, options)
83:           if options[:limit]
84:             order = "ORDER BY #{options[:order] || determine_order_clause(sql)}"
85:             sql.sub!(/ ORDER BY.*$/, '')
86:             SqlServerReplaceLimitOffset.replace_limit_offset!(sql, options[:limit], options[:offset], order)
87:           end
88:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.