-
-
src/Lunr/Gravity/Database/MySQL/MySQLConnection.php (Diff revision 1) Code looks fine to me, but for easy understanding I think this should be a const
[Gravity] Reconnect to mysql if setting charset fails
Review Request #789 — Created Aug. 2, 2021 and submitted
| Information | |
|---|---|
| pprkut | |
| Lunr | |
| 531c1a6... | |
| Reviewers | |
| lunr | |
Sometimes settings a charset fails immediately after establishing a connection with something like E_WARNING: Packets out of order. Expected 1 received 0. Packet size=87 E_WARNING: mysqli::set_charset(): Error executing query In that case, immediately try to reconnect to the db until setting a charset succeeds, or abort with a ConnectionException.
Unit tests
