summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 255f04d853b..ea7b4521247 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -2449,8 +2449,8 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
if (db_name && lower_case_table_names)
{
/* convert database to lower case for comparison */
- strmake( name_buff, db_name, sizeof(name_buff)-1 );
- casedn_str( name_buff );
+ strmake(name_buff, db_name, sizeof(name_buff)-1);
+ my_casedn_str(system_charset_info,name_buff);
db_name = name_buff;
}