[CONJS-267] Ensure that option collation with id > 255 are respected Created: 2023-09-15 Updated: 2023-09-20 Resolved: 2023-09-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | configuration |
| Affects Version/s: | None |
| Fix Version/s: | 3.2.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Since 3.2.1, connection use "SET NAMES utf8mb4" if collation option is not set, so it is recommended to use default behavior and set correctly server default collation. Still, since recent mariadb server have new collation with id > 255 and protocol permits only one byte to set charset/collation, connector that have collation specifically set with an id > to 255 needs to explicitly use "SET NAMES xxx COLLATE yyy" command in order to set specified collation. |