summaryrefslogtreecommitdiff
path: root/mysql-test/t/query_cache.test
diff options
context:
space:
mode:
authorunknown <dkatz@damien-katzs-computer.local>2007-06-13 16:37:16 -0400
committerunknown <dkatz@damien-katzs-computer.local>2007-06-13 16:37:16 -0400
commit8c617a3b0168baa486864047277978447bcd69a9 (patch)
treea8748299a2c4a74adf3367764dbab763583965ba /mysql-test/t/query_cache.test
parent57cac5df0929f5fdf3aabc12ec63be037e28392b (diff)
parentda4e864c7c3ea0906569af6d367a6d226c373cee (diff)
downloadmariadb-git-8c617a3b0168baa486864047277978447bcd69a9.tar.gz
Merge damien-katzs-computer.local:/Users/dkatz/mysql50
into damien-katzs-computer.local:/Users/dkatz/mysql51 mysql-test/r/query_cache.result: Auto merged mysql-test/t/query_cache.test: Auto merged sql/sql_select.cc: Auto merged
Diffstat (limited to 'mysql-test/t/query_cache.test')
-rw-r--r--mysql-test/t/query_cache.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test
index b878c141546..6c8048ab06e 100644
--- a/mysql-test/t/query_cache.test
+++ b/mysql-test/t/query_cache.test
@@ -994,9 +994,33 @@ delimiter ;|
select *, change_global() from t1;
drop function change_global;
+drop table t1;
+
set GLOBAL query_cache_type=default;
set GLOBAL query_cache_limit=default;
set GLOBAL query_cache_min_res_unit=default;
set GLOBAL query_cache_size= default;
+
+#
+# Bug #28897 UUID() returns non-unique values when query cache is enabled
+#
+
+set GLOBAL query_cache_size=1000000;
+
+create table t1 (a char);
+insert into t1 values ('c');
+
+let $q1= `select UUID(), a from t1`;
+let $q2= `select UUID(), a from t1`;
+
+# disabling the logging of the query because the UUIDs are different each run.
+--disable_query_log
+eval select a from t1 where "$q1" = "$q2";
+--enable_query_log
+
+drop table t1;
+
+set GLOBAL query_cache_size= default;
+
# End of 5.0 tests