mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MDEV-9089 Server crashes in MDL_key::mdl_key_init (main.lowercase_table4 test fails)
Fix : make sure that database name is converted to lowercase in check_fk_parent_table_access(), if lowercase_table_names !=0
This commit is contained in:
@@ -6081,6 +6081,7 @@ bool check_fk_parent_table_access(THD *thd,
|
||||
table_name.str= (char *) thd->memdup(fk_key->ref_table.str,
|
||||
fk_key->ref_table.length+1);
|
||||
table_name.length= my_casedn_str(files_charset_info, table_name.str);
|
||||
db_name.length = my_casedn_str(files_charset_info, db_name.str);
|
||||
}
|
||||
|
||||
parent_table.init_one_table(db_name.str, db_name.length,
|
||||
|
||||
Reference in New Issue
Block a user