Skip to content

Commit

Permalink
An addon change for MDEV-32002 Remove my_casedn_str() in append_ident…
Browse files Browse the repository at this point in the history
…ifier() context

There was one more place with my_casedn_str() in append_identifier() context
in TABLE_LIST::print() forgotten in the main patch for MDEV-32002.
Reusing append_identifier_opt_casedn() in this code.
  • Loading branch information
abarkov committed Aug 24, 2023
1 parent ee1497c commit 781ec16
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions sql/sql_select.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30741,21 +30741,9 @@ void TABLE_LIST::print(THD *thd, table_map eliminated_tables, String *str,

if (my_strcasecmp(table_alias_charset, cmp_name, alias.str))
{
char t_alias_buff[MAX_ALIAS_NAME];
LEX_CSTRING t_alias= alias;

str->append(' ');
if (lower_case_table_names == 1)
{
if (alias.str && alias.str[0])
{
strmov(t_alias_buff, alias.str);
t_alias.length= my_casedn_str(files_charset_info, t_alias_buff);
t_alias.str= t_alias_buff;
}
}

append_identifier(thd, str, &t_alias);
append_identifier_opt_casedn(thd, str, alias,
lower_case_table_names == 1);
}

if (index_hints)
Expand Down

0 comments on commit 781ec16

Please sign in to comment.