aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaishi Kasuga <kasuga@livesense.co.jp>2015-06-16 10:08:33 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-06-20 23:07:39 +0900
commit289ec49f469533c89fbca8303dbfd7b1a43d1197 (patch)
treed39b80c7508fa635b20fdfc3093bdb708aef153b
parent7d14bd3ff553d6aba11a50b43773bc21ae20f31e (diff)
downloadrails-289ec49f469533c89fbca8303dbfd7b1a43d1197.tar.gz
rails-289ec49f469533c89fbca8303dbfd7b1a43d1197.tar.bz2
rails-289ec49f469533c89fbca8303dbfd7b1a43d1197.zip
Fix the MySQL column type `SET` registration bug
-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 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