rails--rails/activerecord/test/cases/type
Daniel Colson d30c85cebd
Fix bug with TypeMap default values
https://github.com/rails/rails/pull/42773 introduced a regression where
looking up an unregistered type on a TypeMap with a parent (like
[mysql2 TYPE_MAP_WITH_BOOLEAN](88ec15b850/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb (L618))
would cause a `LocalJumpError`

This commit fixes the error by forwarding the default block when
fetching from the parent TypeMap.

Co-authored-by: Chris Bloom <chrisbloom7@gmail.com>
2021-07-14 13:26:37 -04:00
..
adapter_specific_registry_test.rb
date_time_test.rb
integer_test.rb
string_test.rb
time_test.rb
type_map_test.rb Fix bug with TypeMap default values 2021-07-14 13:26:37 -04:00
unsigned_integer_test.rb