mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -126,7 +126,7 @@ static int show_create_db(THD *thd, LEX *lex);
|
||||
static bool alter_routine(THD *thd, LEX *lex);
|
||||
static bool drop_routine(THD *thd, LEX *lex);
|
||||
|
||||
const Lex_ident_db any_db(STRING_WITH_LEN("*any*"));
|
||||
const Lex_ident_db_normalized any_db(STRING_WITH_LEN("*any*"));
|
||||
|
||||
const LEX_CSTRING command_name[257]={
|
||||
{ STRING_WITH_LEN("Sleep") }, //0
|
||||
@ -2045,8 +2045,8 @@ dispatch_command_return dispatch_command(enum enum_server_command command, THD *
|
||||
/* Must be before we init the table list. */
|
||||
if (lower_case_table_names)
|
||||
{
|
||||
table_name.length= my_casedn_str(files_charset_info, table_name.str);
|
||||
db.length= my_casedn_str(files_charset_info, (char*) db.str);
|
||||
table_name= thd->make_ident_casedn(table_name);
|
||||
db= thd->make_ident_casedn(db);
|
||||
}
|
||||
table_list.init_one_table(&db, (LEX_CSTRING*) &table_name, 0, TL_READ);
|
||||
/*
|
||||
|
Reference in New Issue
Block a user