diff options
author | Jeremy Daer <jeremydaer@gmail.com> | 2015-09-19 16:05:34 -0700 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2015-09-19 16:05:34 -0700 |
commit | 5837de5360b9a38ca5b07f26b1d03b1ce4763f17 (patch) | |
tree | 03375e471ed6e3568c86a93d963456585c1d2760 /activerecord/test/cases | |
parent | ac2b312219faf67d08a4fb3fd622ecb4c9bc3623 (diff) | |
parent | 206cf5193808b41c45fd287e5134dffa961a88de (diff) | |
download | rails-5837de5360b9a38ca5b07f26b1d03b1ce4763f17.tar.gz rails-5837de5360b9a38ca5b07f26b1d03b1ce4763f17.tar.bz2 rails-5837de5360b9a38ca5b07f26b1d03b1ce4763f17.zip |
Merge pull request #20645 from kamipo/fix_mysql_set_type_bug
Fix undesired type lookup with `SET` in MySQL
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb b/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb index 80244d1439..2749273884 100644 --- a/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb +++ b/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb @@ -22,6 +22,10 @@ module ActiveRecord assert_lookup_type :string, "SET('one', 'two', 'three')" end + def test_set_type_with_value_matching_other_type + assert_lookup_type :string, "SET('unicode', '8bit', 'none', 'time')" + end + def test_enum_type_with_value_matching_other_type assert_lookup_type :string, "ENUM('unicode', '8bit', 'none')" end |