aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-10-08 18:13:36 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-10-08 18:20:30 +0900
commit94d2499156a020a1aee9fedd737975bcaef1b127 (patch)
tree7f5d709127a50604ee3ed5e6e25bfe5c58f4b92a /activerecord/test
parenteaa0cb7924d5ffd0de04492a7198e0d79088aaae (diff)
downloadrails-94d2499156a020a1aee9fedd737975bcaef1b127.tar.gz
rails-94d2499156a020a1aee9fedd737975bcaef1b127.tar.bz2
rails-94d2499156a020a1aee9fedd737975bcaef1b127.zip
Fix subsecond precision supported version
Fractional Seconds supported version is 5.6.4 or higher. http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/helper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb
index 8773986882..89bd3f888e 100644
--- a/activerecord/test/cases/helper.rb
+++ b/activerecord/test/cases/helper.rb
@@ -47,9 +47,7 @@ def in_memory_db?
end
def subsecond_precision_supported?
- !current_adapter?(:MysqlAdapter, :Mysql2Adapter) ||
- (ActiveRecord::Base.connection.send(:version) >= '5.6.0' &&
- ActiveRecord::Base.connection.send(:version) < '5.7.0')
+ !current_adapter?(:MysqlAdapter, :Mysql2Adapter) || ActiveRecord::Base.connection.send(:version) >= '5.6.4'
end
def mysql_enforcing_gtid_consistency?