Commit 442adbb2 authored by unknown's avatar unknown

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().
parent 8c617a3b
...@@ -4542,6 +4542,7 @@ Item* ...@@ -4542,6 +4542,7 @@ Item*
Create_func_uuid::create(THD *thd) Create_func_uuid::create(THD *thd)
{ {
thd->lex->binlog_row_based_if_mixed= TRUE; thd->lex->binlog_row_based_if_mixed= TRUE;
thd->lex->safe_to_cache_query= 0;
return new (thd->mem_root) Item_func_uuid(); return new (thd->mem_root) Item_func_uuid();
} }
...@@ -4552,6 +4553,7 @@ Item* ...@@ -4552,6 +4553,7 @@ Item*
Create_func_uuid_short::create(THD *thd) Create_func_uuid_short::create(THD *thd)
{ {
thd->lex->binlog_row_based_if_mixed= TRUE; thd->lex->binlog_row_based_if_mixed= TRUE;
thd->lex->safe_to_cache_query= 0;
return new (thd->mem_root) Item_func_uuid_short(); return new (thd->mem_root) Item_func_uuid_short();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment