mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-8334: Rename utf8 to utf8mb3
This patch changes the main name of 3 byte character set from utf8 to utf8mb3. New old_mode UTF8_IS_UTF8MB3 is added and set TRUE by default, so that utf8 would mean utf8mb3. If not set, utf8 would mean utf8mb4.
This commit is contained in:
committed by
Oleksandr Byelkin
parent
c366845a0b
commit
2fdb556e04
@@ -108,13 +108,13 @@ namespace mrn {
|
||||
const CHARSET_INFO *charset_info = field_->charset();
|
||||
const char *normalizer_name = NULL;
|
||||
const char *default_normalizer_name = "NormalizerAuto";
|
||||
if ((strcmp(charset_info->name, "utf8_general_ci") == 0) ||
|
||||
if ((strcmp(charset_info->name, "utf8mb3_general_ci") == 0) ||
|
||||
(strcmp(charset_info->name, "utf8mb4_general_ci") == 0)) {
|
||||
normalizer_name = "NormalizerMySQLGeneralCI";
|
||||
} else if ((strcmp(charset_info->name, "utf8_unicode_ci") == 0) ||
|
||||
} else if ((strcmp(charset_info->name, "utf8mb3_unicode_ci") == 0) ||
|
||||
(strcmp(charset_info->name, "utf8mb4_unicode_ci") == 0)) {
|
||||
normalizer_name = "NormalizerMySQLUnicodeCI";
|
||||
} else if ((strcmp(charset_info->name, "utf8_unicode_520_ci") == 0) ||
|
||||
} else if ((strcmp(charset_info->name, "utf8mb3_unicode_520_ci") == 0) ||
|
||||
(strcmp(charset_info->name, "utf8mb4_unicode_520_ci") == 0)) {
|
||||
normalizer_name = "NormalizerMySQLUnicode520CI";
|
||||
}
|
||||
|
Reference in New Issue
Block a user