diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-22 18:46:22 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-12-22 18:46:22 +0900 |
commit | ecca3d6052d0dc104274a3d6f7da5fd7b216061b (patch) | |
tree | 49dadbe9f89a01dbd68db4f41cccaa01f6fa3a04 /activerecord | |
parent | 2fd3034bf1862bb8e40c0a0a162316b8ff564d0e (diff) | |
download | rails-ecca3d6052d0dc104274a3d6f7da5fd7b216061b.tar.gz rails-ecca3d6052d0dc104274a3d6f7da5fd7b216061b.tar.bz2 rails-ecca3d6052d0dc104274a3d6f7da5fd7b216061b.zip |
Active Record supports MySQL >= 5.1.10
Follow up to #25307 and #23458. Related with #27422.
We are using `information_schema.referential_constraints` since #25307.
The table was introduced in MySQL 5.1.10. MySQL 5.0 is too old. It is
enough to support >= 5.1.10 at least.
MySQL 5.0 GA was released in Dec 2005 and already EOL in Dec 2011.
MySQL 5.1 GA was released in Dec 2008 and already EOL in Dec 2013.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 6985d2c1b2..d02340d961 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -67,8 +67,8 @@ module ActiveRecord @statements = StatementPool.new(self.class.type_cast_config_to_integer(config[:statement_limit])) - if version < "5.0.0" - raise "Your version of MySQL (#{full_version.match(/^\d+\.\d+\.\d+/)[0]}) is too old. Active Record supports MySQL >= 5.0." + if version < "5.1.10" + raise "Your version of MySQL (#{full_version.match(/^\d+\.\d+\.\d+/)[0]}) is too old. Active Record supports MySQL >= 5.1.10." end end |