From d102b5457ceaf24cbe55ddc8ab9494f589ea03c5 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Jan 2006 16:24:58 +0100 Subject: [PATCH] BUG#16188: Could not compile sql/sql_class.cc: Needed to be able to compile without RBR --- sql/sql_class.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index f7894beec6d..853e8be6629 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -1976,6 +1976,7 @@ void THD::reset_sub_statement_state(Sub_statement_state *backup, backup->client_capabilities= client_capabilities; backup->savepoints= transaction.savepoints; +#ifdef HAVE_ROW_BASED_REPLICATION /* For row-based replication and before executing a function/trigger, the pending rows event has to be flushed. The function/trigger @@ -1992,6 +1993,7 @@ void THD::reset_sub_statement_state(Sub_statement_state *backup, */ if (binlog_row_based) binlog_flush_pending_rows_event(false); +#endif /* HAVE_ROW_BASED_REPLICATION */ if ((!lex->requires_prelocking() || is_update_query(lex->sql_command)) && !binlog_row_based)