summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorguilhem@mysql.com <>2006-03-13 15:34:30 +0100
committerguilhem@mysql.com <>2006-03-13 15:34:30 +0100
commite485f8e12c614dd4c721e265dacb71e1f6c36dc2 (patch)
treed8475bb058e90e7eb61a065f843874a80f73e72d /sql/item_create.cc
parent91574a1dc6189f4ef82e34aa1b3da6d72f73deda (diff)
downloadmariadb-git-e485f8e12c614dd4c721e265dacb71e1f6c36dc2.tar.gz
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.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc4
1 files changed, 3 insertions, 1 deletions
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)