aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorbannzai <kingkong999yhirose@gmail.com>2019-01-07 23:36:31 +0900
committerbannzai <kingkong999yhirose@gmail.com>2019-01-08 14:56:46 +0900
commit45cfe9f8b6a2aca1a7b88118654b7970874a08df (patch)
tree6ebd8c91b8b9a64e5e7d6fab9e4810345928b455 /activerecord/test
parent9cfcc067e626f0f1e220cc00a9f96622a936350d (diff)
downloadrails-45cfe9f8b6a2aca1a7b88118654b7970874a08df.tar.gz
rails-45cfe9f8b6a2aca1a7b88118654b7970874a08df.tar.bz2
rails-45cfe9f8b6a2aca1a7b88118654b7970874a08df.zip
:recycle: Fix mysql type map for enum and set
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb4
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 02e76ce146..38331aa641 100644
--- a/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb
+++ b/activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb
@@ -27,8 +27,12 @@ if current_adapter?(:Mysql2Adapter)
def test_string_types
assert_lookup_type :string, "enum('one', 'two', 'three')"
assert_lookup_type :string, "ENUM('one', 'two', 'three')"
+ assert_lookup_type :string, "enum ('one', 'two', 'three')"
+ assert_lookup_type :string, "ENUM ('one', 'two', 'three')"
assert_lookup_type :string, "set('one', 'two', 'three')"
assert_lookup_type :string, "SET('one', 'two', 'three')"
+ assert_lookup_type :string, "set ('one', 'two', 'three')"
+ assert_lookup_type :string, "SET ('one', 'two', 'three')"
end
def test_set_type_with_value_matching_other_type