summaryrefslogtreecommitdiff
path: root/mysql-test/r/query_cache.result
diff options
context:
space:
mode:
authorunknown <thek@adventure.(none)>2007-08-21 17:47:06 +0200
committerunknown <thek@adventure.(none)>2007-08-21 17:47:06 +0200
commitabc02d7e47b535504867aad3a921b235b68d40e7 (patch)
tree89ed9666884dc6ca9b8df5f27f3073713e6a4a50 /mysql-test/r/query_cache.result
parent3c52b2b3a8dd0f1accc431a20d879d46fdb8c8fa (diff)
parent3a5a0ea3928d24a8cd0a45691de6d917672d63c6 (diff)
downloadmariadb-git-abc02d7e47b535504867aad3a921b235b68d40e7.tar.gz
Merge adventure.(none):/home/thek/Development/cpp/bug30269/my50-bug30269
into adventure.(none):/home/thek/Development/cpp/mysql-5.0-runtime mysql-test/r/query_cache.result: Auto merged mysql-test/t/query_cache.test: Auto merged
Diffstat (limited to 'mysql-test/r/query_cache.result')
-rw-r--r--mysql-test/r/query_cache.result9
1 files changed, 7 insertions, 2 deletions
diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result
index 25ac369481e..68f18d1b0b2 100644
--- a/mysql-test/r/query_cache.result
+++ b/mysql-test/r/query_cache.result
@@ -1622,10 +1622,11 @@ a (select count(*) from t2)
4 0
drop table t1,t2;
DROP DATABASE IF EXISTS bug30269;
+FLUSH STATUS;
CREATE DATABASE bug30269;
USE bug30269;
CREATE TABLE test1 (id int, name varchar(23));
-CREATE VIEW view1 AS SELECT id FROM test1;
+CREATE VIEW view1 AS SELECT * FROM test1;
INSERT INTO test1 VALUES (5, 'testit');
GRANT SELECT (id) ON TABLE bug30269.test1 TO 'bug30269'@'localhost';
GRANT SELECT ON TABLE bug30269.view1 TO 'bug30269'@'localhost';
@@ -1634,15 +1635,19 @@ USE bug30269;
show status like 'Qcache_queries_in_cache';
Variable_name Value
Qcache_queries_in_cache 0
+# Select statement not stored in query cache because of column privileges.
SELECT id FROM test1 WHERE id>2;
id
5
+show status like 'Qcache_queries_in_cache';
+Variable_name Value
+Qcache_queries_in_cache 0
SELECT id FROM view1 WHERE id>2;
id
5
show status like 'Qcache_queries_in_cache';
Variable_name Value
-Qcache_queries_in_cache 0
+Qcache_queries_in_cache 1
DROP DATABASE bug30269;
DROP USER 'bug30269'@'localhost';
set GLOBAL query_cache_type=default;