diff options
author | unknown <dkatz@damien-katzs-computer.local> | 2007-06-13 17:25:16 -0400 |
---|---|---|
committer | unknown <dkatz@damien-katzs-computer.local> | 2007-06-13 17:25:16 -0400 |
commit | 442adbb2e4657aca018f9aba42f7dd56b3d0221a (patch) | |
tree | df99df861ad0405fa47c3a527260dfbd59d2aa77 | |
parent | 8c617a3b0168baa486864047277978447bcd69a9 (diff) | |
download | mariadb-git-442adbb2e4657aca018f9aba42f7dd56b3d0221a.tar.gz |
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().
-rw-r--r-- | sql/item_create.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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(); } |