From 442adbb2e4657aca018f9aba42f7dd56b3d0221a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Jun 2007 17:25:16 -0400 Subject: [PATCH] Bug #28897 UUID() returns non-unique values when query cache is enabled Removed the ability to cache queries with UUID() and UUID_SHORT(). sql/item_create.cc: Removed the ability to cache queries with UUID() and UUID_SHORT(). --- sql/item_create.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/item_create.cc b/sql/item_create.cc index 19a7a8b6d3f..309bd78b04e 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -4542,6 +4542,7 @@ Item* Create_func_uuid::create(THD *thd) { thd->lex->binlog_row_based_if_mixed= TRUE; + thd->lex->safe_to_cache_query= 0; return new (thd->mem_root) Item_func_uuid(); } @@ -4552,6 +4553,7 @@ Item* Create_func_uuid_short::create(THD *thd) { thd->lex->binlog_row_based_if_mixed= TRUE; + thd->lex->safe_to_cache_query= 0; return new (thd->mem_root) Item_func_uuid_short(); }