summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 6686f927e05..d7d7469ceed 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3396,10 +3396,7 @@ TABLE_LIST *add_table_to_list(Table_ident *table, LEX_STRING *alias,
}
ptr->alias= alias_str;
-#ifdef TO_BE_DELETED
- if (lower_case_table_names)
- casedn_str(table->table.str);
-#endif
+ table_case_convert(table->table.str, table->table.length);
ptr->real_name=table->table.str;
ptr->real_name_length=table->table.length;
ptr->lock_type= lock_type;