1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

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.
This commit is contained in:
unknown
2003-09-28 18:31:49 +02:00
parent d84ae0fde9
commit 3106e3119a
3 changed files with 30 additions and 8 deletions

View File

@ -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);