From 289ec49f469533c89fbca8303dbfd7b1a43d1197 Mon Sep 17 00:00:00 2001 From: Taishi Kasuga Date: Tue, 16 Jun 2015 10:08:33 +0900 Subject: Fix the MySQL column type `SET` registration bug --- activerecord/test/cases/connection_adapters/mysql_type_lookup_test.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3