From b6a65715d6f9e74568e7cbd117d17f5dd00c89a3 Mon Sep 17 00:00:00 2001 From: "lars@mysql.com" <> Date: Mon, 15 Aug 2005 17:53:38 +0200 Subject: [PATCH] BUG#12542: Prevous patch was incorrect. This removed the patch. --- sql/sql_parse.cc | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 9129cf584f9..cd87b097038 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1975,16 +1975,11 @@ mysql_execute_command(THD *thd) /* Skip if we are in the slave thread, some table rules have been given and the table list says the query should not be replicated. - - Exceptions are: - - - SET: we always execute it (e.g., SET ONE_SHOT TIME_ZONE = 'XYZ') - - - DROP TEMPORARY TABLE IF EXISTS: we always execute it (otherwise we - have stale files on slave caused by exclusion of one tmp table). + Exception is DROP TEMPORARY TABLE IF EXISTS: we always execute it + (otherwise we have stale files on slave caused by exclusion of one tmp + table). */ - if (lex->sql_command != SQLCOM_SET_OPTION && - !(lex->sql_command == SQLCOM_DROP_TABLE && + if (!(lex->sql_command == SQLCOM_DROP_TABLE && lex->drop_temporary && lex->drop_if_exists) && all_tables_not_ok(thd,tables)) {