aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorDylan Thacker-Smith <dylan.smith@shopify.com>2016-09-13 14:17:06 -0400
committerArthur Neves <arthurnn@gmail.com>2016-09-13 14:19:15 -0400
commit88ff3f820aa88b7235b7554668f91a73532726af (patch)
tree1bce6d1500d815f164f1dde8f7c4ea68e706af4b /activerecord
parentd4bbac8446be51a49382f04caba2e2c5582289ed (diff)
downloadrails-88ff3f820aa88b7235b7554668f91a73532726af.tar.gz
rails-88ff3f820aa88b7235b7554668f91a73532726af.tar.bz2
rails-88ff3f820aa88b7235b7554668f91a73532726af.zip
5-0-backport: activerecord/mysql2: Avoid setting @connection to nil, just close it (#26473)
* activerecord/mysql2: Avoid setting @connection to nil, just close it Backport of https://github.com/rails/rails/pull/26434 * Add a CHANGELOG entry
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 3eac34d65e..bca719cb2f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Using a mysql2 connection after it fails to reconnect will now have an error message
+ saying the connection is closed rather than an undefined method error message.
+
+ *Dylan Thacker-Smith*
+
* PostgreSQL array columns will now respect the encoding of strings contained
in the array.