mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-31531 Remove my_casedn_str() and my_caseup_str()
Under terms of MDEV 27490 we'll add support for non-BMP identifiers and upgrade casefolding information to Unicode version 14.0.0. In Unicode-14.0.0 conversion to lower and upper cases can increase octet length of the string, so conversion won't be possible in-place any more. This patch removes virtual functions performing in-place casefolding: - my_charset_handler_st::casedn_str() - my_charset_handler_st::caseup_str() and fixes the code to use the non-inplace functions instead: - my_charset_handler_st::casedn() - my_charset_handler_st::caseup()
This commit is contained in:
@ -657,7 +657,10 @@ bool Sql_cmd_alter_table_exchange_partition::
|
||||
my_snprintf(temp_name, sizeof(temp_name), "%s-exchange-%lx-%llx",
|
||||
tmp_file_prefix, current_pid, thd->thread_id);
|
||||
if (lower_case_table_names)
|
||||
my_casedn_str(files_charset_info, temp_name);
|
||||
{
|
||||
// Ok to use latin1 as the file name is in the form '#sql-exchange-abc-def'
|
||||
my_casedn_str_latin1(temp_name);
|
||||
}
|
||||
build_table_filename(temp_file_name, sizeof(temp_file_name),
|
||||
table_list->next_local->db.str,
|
||||
temp_name, "", FN_IS_TMP);
|
||||
|
Reference in New Issue
Block a user