MySqlConnector icon indicating copy to clipboard operation
MySqlConnector copied to clipboard

Don't issue `SET NAMES` for MariaDB

Open bgrainger opened this issue 3 years ago • 0 comments
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.

bgrainger avatar Nov 01 '22 03:11 bgrainger