From e485f8e12c614dd4c721e265dacb71e1f6c36dc2 Mon Sep 17 00:00:00 2001 From: "guilhem@mysql.com" <> Date: Mon, 13 Mar 2006 15:34:30 +0100 Subject: Fixes to the replication mixed mode (patch approved by Monty): - detect the need for row-based binlogging not at execution stage but earlier at parsing stage; needed for example for CREATE TABLE SELECT UUID(). - more tests of this mixed mode. --- sql/item_create.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sql/item_create.cc') diff --git a/sql/item_create.cc b/sql/item_create.cc index 17f1fbca471..fb1ef0ee9bc 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -431,7 +431,9 @@ Item *create_func_unhex(Item* a) Item *create_func_uuid(void) { - return new Item_func_uuid(); + THD *thd= current_thd; + thd->lex->binlog_row_based_if_mixed= 1; + return new(thd->mem_root) Item_func_uuid(); } Item *create_func_version(void) -- cgit v1.2.1