summaryrefslogtreecommitdiff
path: root/mysql-test/r/query_cache.result
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2013-07-18 12:35:00 +0300
committerunknown <sanja@montyprogram.com>2013-07-18 12:35:00 +0300
commit1b82512914db8d5779395017e2ed4a66a48b561c (patch)
tree6e7281e412d9ce84e6ddafb5422c955ee74da1cb /mysql-test/r/query_cache.result
parent33b7d10921ca751c1123b4d713a358815bbcf6ff (diff)
downloadmariadb-git-1b82512914db8d5779395017e2ed4a66a48b561c.tar.gz
MDEV-617 LP:671189 - Query cache is not used for tables or databases with dots in their names
test suite added to be sure that bug is fixed
Diffstat (limited to 'mysql-test/r/query_cache.result')
-rw-r--r--mysql-test/r/query_cache.result35
1 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result
index 62f8a9728c3..18f9db1743d 100644
--- a/mysql-test/r/query_cache.result
+++ b/mysql-test/r/query_cache.result
@@ -1944,6 +1944,41 @@ COUNT(*)
DROP TABLE t1;
SET GLOBAL query_cache_size= @qc;
#
+End of 5.5 tests
+#
+# MDEV-617 LP:671189 - Query cache is not used for tables or
+# databases with dots in their names
+#
+CREATE DATABASE `foo.bar`;
+use `foo.bar`;
+flush status;
+CREATE TABLE moocow (a int);
+INSERT INTO moocow VALUES (1), (2), (3);
+SHOW STATUS LIKE 'Qcache_inserts';
+Variable_name Value
+Qcache_inserts 0
+SELECT * FROM moocow;
+a
+1
+2
+3
+SHOW STATUS LIKE 'Qcache_inserts';
+Variable_name Value
+Qcache_inserts 1
+SHOW STATUS LIKE 'Qcache_hits';
+Variable_name Value
+Qcache_hits 0
+SELECT * FROM moocow;
+a
+1
+2
+3
+SHOW STATUS LIKE 'Qcache_hits';
+Variable_name Value
+Qcache_hits 1
+use test;
+drop database `foo.bar`;
+End of 10.0 tests
restore defaults
SET GLOBAL query_cache_type= default;
SET GLOBAL query_cache_size= default;