[CONJ-374] mascale issue handling utfbmb4 Created: 2016-10-20 Updated: 2016-10-20 Resolved: 2016-10-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Maxscale actually send latin1 charset to client. test case :
Using java connector (MySQL or MariaDB) will throw an exception using maxscale : "java.sql.SQLDataException: Incorrect string value: '\xF0\x9F\x8C\x9F' for column 'field1' at row 1 Issue Description :Server has to know the charset client is using : So in Initial Handshake Packet server will indicate his default Client will then send the encoding it use in Hanshake response packet C/J will send utf8 (33) or utf8mb4(the value send by server) according to what server send initially. That will cause problems afterwhile, because server check that data are correct according to client charset. when client send a 4 byte utf8 character, server will throw an exception : " Incorrect string value". |
| Comments |
| Comment by Diego Dupin [ 2016-10-20 ] |
|
issue not created for good project : https://jira.mariadb.org/browse/MXS-953 |