File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5875,7 +5875,7 @@ static bool prepare_foreign_key(THD *thd,
5875
5875
fk_info->ref_db = fk_key->ref_db ;
5876
5876
if (lower_case_table_names == 1 ) // Store lowercase if LCTN = 1
5877
5877
{
5878
- char buff[NAME_CHAR_LEN];
5878
+ char buff[NAME_CHAR_LEN + 1 ];
5879
5879
my_stpncpy (buff, fk_info->ref_db .str , NAME_CHAR_LEN);
5880
5880
my_casedn_str (system_charset_info, buff);
5881
5881
fk_info->ref_db .str = sql_strdup (buff);
@@ -5888,7 +5888,7 @@ static bool prepare_foreign_key(THD *thd,
5888
5888
fk_info->ref_table = fk_key->ref_table ;
5889
5889
if (lower_case_table_names == 1 ) // Store lowercase if LCTN = 1
5890
5890
{
5891
- char buff[NAME_CHAR_LEN];
5891
+ char buff[NAME_CHAR_LEN + 1 ];
5892
5892
my_stpncpy (buff, fk_info->ref_table .str , NAME_CHAR_LEN);
5893
5893
my_casedn_str (system_charset_info, buff);
5894
5894
fk_info->ref_table .str = sql_strdup (buff);
You can’t perform that action at this time.
0 commit comments