diff options
author | unknown <guilhem@mysql.com> | 2003-09-28 18:31:49 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2003-09-28 18:31:49 +0200 |
commit | 3106e3119a2b3ee9155360279e48093d0e3b7d45 (patch) | |
tree | 7167749cc124337522cef82b8ddb1e57a15fb976 /sql/sql_base.cc | |
parent | d84ae0fde9622676171089a950e2b7db1415d9ea (diff) | |
download | mariadb-git-3106e3119a2b3ee9155360279e48093d0e3b7d45.tar.gz |
Fix for BUG#1345 "SQL Syntax Error in binarylog with DROP TABLES":
it's just backquoting the db's and table's names
when writing DROP TEMPORARY TABLE to the binlog when a connection ends.
A testcase for this.
sql/sql_base.cc:
backquote db and table name when writing DROP TEMPORARY TABLE to the binlog
when a connection ends.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 14 |
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); |