diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-02 15:20:11 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-02 15:20:11 -0700 |
commit | 4ec5b0d6b4d8a57e034b1014942356e95caf47aa (patch) | |
tree | c4fbadd720ad71365743897c4e418b7e40d5f50f /activerecord/test/cases | |
parent | 35d77130a2c08f477ce5e7f2e5b28934ad393641 (diff) | |
download | rails-4ec5b0d6b4d8a57e034b1014942356e95caf47aa.tar.gz rails-4ec5b0d6b4d8a57e034b1014942356e95caf47aa.tar.bz2 rails-4ec5b0d6b4d8a57e034b1014942356e95caf47aa.zip |
Properly lookup the limit for bigint
Fixes #18787.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/connection_adapters/type_lookup_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/type_lookup_test.rb b/activerecord/test/cases/connection_adapters/type_lookup_test.rb index d5c1dc1e5d..ac2e0053b8 100644 --- a/activerecord/test/cases/connection_adapters/type_lookup_test.rb +++ b/activerecord/test/cases/connection_adapters/type_lookup_test.rb @@ -79,6 +79,11 @@ module ActiveRecord assert_lookup_type :integer, 'bigint' end + def test_bigint_limit + cast_type = @connection.type_map.lookup("bigint") + assert_equal 8, cast_type.limit + end + def test_decimal_without_scale types = %w{decimal(2) decimal(2,0) numeric(2) numeric(2,0) number(2) number(2,0)} types.each do |type| |