Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
There is a difference between 2.x and 3.x behavior concerning session variables:
Connector after creating a connection execute an additional SQL command to set different things, mostly to ensure corresponding to JDBC default.
To simplify, that command is something like
SET autocommit=1, ..., <session variables>, NAMES utf8mb4 |
So session variables explicitly changing charset will be ignored using utf8mb4.
Goal here is just to set session variable at the end of this initialization command, to ensure user explicitly session variables will always be set.