MySqlConnector
MySqlConnector copied to clipboard
Don't issue `SET NAMES` for MariaDB
trafficstars
When MySqlConnector performs a connection reset, it also issues a SET NAMES statement (see https://github.com/mysql-net/MySqlConnector/issues/66) to work around https://bugs.mysql.com/bug.php?id=97633.
MariaDB doesn't have this bug: https://jira.mariadb.org/browse/MDEV-18281.
Although we currently have pipelining (https://github.com/mysql-net/MySqlConnector/pull/1089) which avoids multiple round trips, it may still improve efficiency slightly to detect MariaDB and skip the SET NAMES packet.