[CONJ-1092] ensure respecting server collation Created: 2023-07-21  Updated: 2023-07-25  Resolved: 2023-07-25

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 3.2.0

Type: Bug Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Connector use utf8mb4 in all exchanges.
The problem is that current implementation use server truncated collation id in handshake packet. The problem is that when mariadb didn't have lots of collation, a single byte was ok. Since mysql8 and particulary for mariadb since MDEV-27009 that have huge amount of collation, relying on this value is not a good solution.

New implementation must execute "SET NAMES utf8mb4" ensuring that utf8mb4 will be the charset use in exchange, indicating to server to use correct collation.


Generated at Thu Feb 08 03:20:33 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.