Fix Bug #13083023 - 60229: BROKEN COMPATIBILITY: ERROR WHILE CREATE TABLE

WITH FOREIGN KEY CONSTRAI

rb://844 approved by marko
This commit is contained in:
Jimmy Yang 2011-12-07 18:44:52 -08:00
commit 8bb893f5c3
4 changed files with 71 additions and 0 deletions

View file

@ -3069,10 +3069,15 @@ dict_scan_table_name(
memcpy(ref, database_name, database_name_len);
ref[database_name_len] = '/';
memcpy(ref + database_name_len + 1, table_name, table_name_len + 1);
} else {
#ifndef __WIN__
if (innobase_get_lower_case_table_names() == 1) {
innobase_casedn_str(ref);
}
#else
innobase_casedn_str(ref);
#endif /* !__WIN__ */
*table = dict_table_get_low(ref);
}