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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 6a5073be3a7..055317f0445 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -6758,7 +6758,7 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
{
if (table->table.length)
table->table.length= my_casedn_str(files_charset_info, table->table.str);
- if (ptr->db_length)
+ if (ptr->db_length && ptr->db != any_db)
ptr->db_length= my_casedn_str(files_charset_info, ptr->db);
}