method
extract_limit
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::AbstractAdapter
extract_limit(sql_type)protected
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 538
def extract_limit(sql_type) # :nodoc:
case sql_type
when /^bigint/
8
when /\((.*)\)/
$1.to_i
end
end