aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-08-04 04:59:50 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-08-04 05:04:02 +0900
commit977ffe880624bbd05f5ee1cc6e4fa51a999884ab (patch)
tree38797f17323266b5d722111c6a6677286793efb5 /activerecord
parent17eb64213a86d14ebe44a1215f2408065fa2634a (diff)
downloadrails-977ffe880624bbd05f5ee1cc6e4fa51a999884ab.tar.gz
rails-977ffe880624bbd05f5ee1cc6e4fa51a999884ab.tar.bz2
rails-977ffe880624bbd05f5ee1cc6e4fa51a999884ab.zip
Should use `server_info[:version]` instead of `info[:version]`
Because `info[:version]` is a client version, the server version is `server_info[:version]`.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
index e97e82f056..b7db57c9fe 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -254,7 +254,7 @@ module ActiveRecord
end
def full_version
- @full_version ||= @connection.info[:version]
+ @full_version ||= @connection.server_info[:version]
end
def set_field_encoding field_name