diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-04-16 16:37:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-16 16:37:51 +0200 |
commit | dc2d19b8bf693886bec520c1787166eb105c8567 (patch) | |
tree | 0352d712553270ad9b1355027843cf3229f46685 /activerecord/test/cases/connection_adapters | |
parent | f87d518809541d2c89acdb36d5a2a96cab3ab50b (diff) | |
parent | b381e43a12fdf10c93f45939b4fa4689cfbda559 (diff) | |
download | rails-dc2d19b8bf693886bec520c1787166eb105c8567.tar.gz rails-dc2d19b8bf693886bec520c1787166eb105c8567.tar.bz2 rails-dc2d19b8bf693886bec520c1787166eb105c8567.zip |
Merge pull request #35946 from alimi/cache-full-mysql-database-version
Cache full MySQL version in schema cache
Diffstat (limited to 'activerecord/test/cases/connection_adapters')
-rw-r--r-- | activerecord/test/cases/connection_adapters/schema_cache_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/connection_adapters/schema_cache_test.rb b/activerecord/test/cases/connection_adapters/schema_cache_test.rb index 89a9c30f9b..28e232b88f 100644 --- a/activerecord/test/cases/connection_adapters/schema_cache_test.rb +++ b/activerecord/test/cases/connection_adapters/schema_cache_test.rb @@ -95,6 +95,10 @@ module ActiveRecord assert_no_queries do assert_equal @database_version.to_s, @cache.database_version.to_s + + if current_adapter?(:Mysql2Adapter) + assert_not_nil @cache.database_version.full_version_string + end end end |