method
extract_limit
v4.2.7 -
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 456
def extract_limit(sql_type) # :nodoc:
case sql_type
when /^bigint/
8
when /\((.*)\)/
$1.to_i
end
end