[MDEV-29446] Change SHOW CREATE TABLE to display default collations Created: 2022-09-02 Updated: 2023-11-27 Resolved: 2022-09-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Fix Version/s: | 10.3.37, 10.4.27, 10.5.18, 10.6.11, 10.7.7, 10.8.6, 10.9.4, 10.10.2, 10.11.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Currently MariaDB reduces SHOW CREATE TABLE output: COLLATE clause is not displayed if the collation is default for its character set.
Notice:
Under terms of MDEV-19123, we're going to change the default collation for Unicode charcter sets to uca1400_ai_ci.
e.g. utf8mb4_general_ci will be erroneously replaced to uca1400_ai_ci. To avoid this, SHOW CREATE TABLE should always diplay collations after CHARACTER SET clause, even default ones. |
| Comments |
| Comment by Alexander Barkov [ 2022-09-05 ] | |||||
|
serg, can you please review this patch: ? | |||||
| Comment by Sergei Golubchik [ 2022-09-12 ] | |||||
|
68ebe0e2f5e is ok to push | |||||
| Comment by Alexander Barkov [ 2022-09-14 ] | |||||
|
Pushed to 10.4 In 10.9 we'll additionally need to fix json_table code inside a big if() condition:
| |||||
| Comment by Alexander Barkov [ 2022-09-22 ] | |||||
|
Reopening the issue as 10.9 still needs an additional fix into the JSON_TABLE related code mentioned above. |