[MDEV-22211] case senitivity behavior not as shown by server, by db, by table, by connection Created: 2020-04-10 Updated: 2021-10-09 Resolved: 2021-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Juerg Oehler | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | collation | ||
| Environment: |
Current database: base |
||
| Attachments: |
|
| Description |
|
environment:
test: select cdgrp,tshort,tlong from t_config where tshort = 'xau'; redo test after drop table, create it newly (with changed server configuration) conclusion: just changing collation in server configuration does show up everything ok. but the engine behave not as expected. it need's an alter table to set everything correct - changing server configuration does not. after fix: select cdgrp, tshort from t_config where cdgrp = 'CDGRP' return empty dataset
conclusion: alter table convert character set and collation does fix the issue but can leave inconsistent indexes behind. any checks on table structure do not recognise inkonsistency. have fun |
| Comments |
| Comment by Alexander Barkov [ 2021-10-09 ] | ||
|
This is not a bug. These lines in my.cnf:
only change the default for new databases. The old tables remain with their old character set and collation. One still needs to run ALTER TABLE for old tables to start using a new collation. |