summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorunknown <dkatz@damien-katzs-computer.local>2007-06-13 14:23:25 -0400
committerunknown <dkatz@damien-katzs-computer.local>2007-06-13 14:23:25 -0400
commit40ebf3b70bad49c73bee878b53770d2a12fbc349 (patch)
tree40ae8cd14ebfab90c4b1fcdfa663fb60431fe971 /sql/item_create.cc
parent5965e8879b2ea60cc315e22e284b623bed038c8c (diff)
downloadmariadb-git-40ebf3b70bad49c73bee878b53770d2a12fbc349.tar.gz
Bug #28897 UUID() returns non-unique values when query cache is enabled
Removed the ability to cache queries containing "UUID()". mysql-test/r/query_cache.result: Added test to ensure "select UUID(), a from t1" is different each time. mysql-test/t/query_cache.test: Added test to ensure "select UUID(), a from t1" is different each time. sql/item_create.cc: Removed the ability to cache queries with UUID().
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index c4008d36aae..42cbdc8c280 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -418,6 +418,7 @@ Item *create_func_unhex(Item* a)
Item *create_func_uuid(void)
{
+ current_thd->lex->safe_to_cache_query= 0;
return new Item_func_uuid();
}