Skip to content

Commit

Permalink
MDEV-9089 Server crashes in MDL_key::mdl_key_init (main.lowercase_tab…
Browse files Browse the repository at this point in the history
…le4 test fails)

Fix : make sure that database name is converted to lowercase in
check_fk_parent_table_access(), if lowercase_table_names !=0
  • Loading branch information
vaintroub committed Nov 10, 2015
1 parent 9f862ce commit 6c8f650
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/sql_parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c8f650

Please sign in to comment.