method
add_limit_offset!
add_limit_offset!(sql, options)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 221 def add_limit_offset!(sql, options) #:nodoc if limit = options[:limit] unless offset = options[:offset] sql << " LIMIT #{limit}" else sql << " LIMIT #{offset}, #{limit}" end end end