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.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 43718e5d93b..1010378825f 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -561,15 +561,13 @@ void close_temporary_tables(THD *thd)
{
// skip temporary tables not created directly by the user
if (table->real_name[0] != '#')
- {
- /*
- Here we assume table_cache_key always starts
- with \0 terminated db name
- */
found_user_tables = 1;
- }
- end = strxmov(end,table->table_cache_key,".",
- table->real_name,",", NullS);
+ /*
+ Here we assume table_cache_key always starts
+ with \0 terminated db name
+ */
+ end = strxmov(end,"`",table->table_cache_key,"`",
+ ".`",table->real_name,"`,", NullS);
}
next=table->next;
close_temporary(table);