From 3cc56cb5ad789bca8fac743007947d718980e774 Mon Sep 17 00:00:00 2001 From: Davi Arnaut Date: Thu, 27 May 2010 18:11:55 -0300 Subject: Bug#42643: InnoDB does not support replication of TRUNCATE TABLE Post-merge fix: Pass the right parameter type to open_and_lock_tables. Passing FALSE ensures that derived table handling is disabled, truncate only operates on base tables. --- sql/sql_truncate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_truncate.h') diff --git a/sql/sql_truncate.h b/sql/sql_truncate.h index a9eec384718..11c07c7187c 100644 --- a/sql/sql_truncate.h +++ b/sql/sql_truncate.h @@ -16,7 +16,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ class THD; -class TABLE_LIST; +struct TABLE_LIST; bool mysql_truncate_table(THD *thd, TABLE_LIST *table_ref); -- cgit v1.2.1