Skip to content

Commit 62c7756

Browse files
committed
Bug#25495714: FOREIGN KEY INFORMATION IN NEW DD NOT FOLLOW
THE LOWER CASE TABLE NAME SETTING Post-push fix: Fix off-by-one error that caused innodb.innodb_bug12661768 to fail on Windows.
1 parent 9cf57e3 commit 62c7756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/sql_table.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5875,7 +5875,7 @@ static bool prepare_foreign_key(THD *thd,
58755875
fk_info->ref_db= fk_key->ref_db;
58765876
if (lower_case_table_names == 1) // Store lowercase if LCTN = 1
58775877
{
5878-
char buff[NAME_CHAR_LEN];
5878+
char buff[NAME_CHAR_LEN + 1];
58795879
my_stpncpy(buff, fk_info->ref_db.str, NAME_CHAR_LEN);
58805880
my_casedn_str(system_charset_info, buff);
58815881
fk_info->ref_db.str= sql_strdup(buff);
@@ -5888,7 +5888,7 @@ static bool prepare_foreign_key(THD *thd,
58885888
fk_info->ref_table= fk_key->ref_table;
58895889
if (lower_case_table_names == 1) // Store lowercase if LCTN = 1
58905890
{
5891-
char buff[NAME_CHAR_LEN];
5891+
char buff[NAME_CHAR_LEN + 1];
58925892
my_stpncpy(buff, fk_info->ref_table.str, NAME_CHAR_LEN);
58935893
my_casedn_str(system_charset_info, buff);
58945894
fk_info->ref_table.str= sql_strdup(buff);

0 commit comments

Comments
 (0)