diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-08 15:43:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 15:43:52 +0900 |
commit | a75dea08225285eec5fc199684cd1a51853d2845 (patch) | |
tree | 152964272e16633d97aa45baa74c812c3865f093 /activerecord/test | |
parent | 29bb990f97816f3e0fb086ec9985983c51a56a96 (diff) | |
parent | 45cfe9f8b6a2aca1a7b88118654b7970874a08df (diff) | |
download | rails-a75dea08225285eec5fc199684cd1a51853d2845.tar.gz rails-a75dea08225285eec5fc199684cd1a51853d2845.tar.bz2 rails-a75dea08225285eec5fc199684cd1a51853d2845.zip |
Merge pull request #34896 from bannzai/fix/active_record/mysql/enum_type_map
Allow space for mysql enum and set keyword.
Diffstat (limited to 'activerecord/test')
-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 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 |