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
This commit is contained in:
Dylan Thacker-Smith 2016-09-13 14:17:06 -04:00 committed by Arthur Neves
parent d4bbac8446
commit 88ff3f820a
No known key found for this signature in database
GPG Key ID: 04A390FB1E433E17

@ -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.