ddl: allow more charset/collation modifications for database/table #10958
What problem does this PR solve?
Allow modifying collations of databases/tables when their charsets are utf8/utf8mb4.
For example, some TiDB users want to do the following things:
Before this PR, an error is returned:
This PR fixes this error.
What is changed and how it works?
Some limitation checks are loosed
@@ Coverage Diff @@ ## master #10958 +/- ## =========================================== Coverage 81.0421% 81.0421% =========================================== Files 419 419 Lines 89662 89662 =========================================== Hits 72664 72664 Misses 11750 11750 Partials 5248 5248
I am not familiar with TiDB's charset. Since TiDB does not support case insensitive collation, would it be better to disallow the creation of
Some of TiDB users need this syntax, but they don't really care whether the collation is case-insensitive.