diff options
author | unknown <bell@sanja.is.com.ua> | 2005-06-23 20:06:35 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-06-23 20:06:35 +0300 |
commit | 0cc6dd83c469b105c6c4e9032d28b01dd208c532 (patch) | |
tree | 0d99be579b042cf0600548c9e9e8b0e29fc7ba11 /mysql-test/t/query_cache.test | |
parent | 109323717470d3d7c2507b0e424a340eb05a0679 (diff) | |
download | mariadb-git-0cc6dd83c469b105c6c4e9032d28b01dd208c532.tar.gz |
temporary tables of subquery in the from clause just skipped during processing QC tables (BUG#11522)
mysql-test/r/query_cache.result:
queries with subquery in the FROM clause
mysql-test/t/query_cache.test:
queries with subquery in the FROM clause
sql/sql_cache.cc:
temporary tables of subquery in the from clause just skipped during processing QC tables
Diffstat (limited to 'mysql-test/t/query_cache.test')
-rw-r--r-- | mysql-test/t/query_cache.test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test index 170f150f7aa..ecb8fee9af1 100644 --- a/mysql-test/t/query_cache.test +++ b/mysql-test/t/query_cache.test @@ -730,4 +730,30 @@ flush query cache; drop table t1, t2; +create table t1 (a int); +insert into t1 values (1); +reset query cache; +flush status; + +# +# queries with subquery in the FROM clause (BUG#11522) +# +select * from (select * from t1) a; +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; +select * from (select * from t1) a; +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; +insert into t1 values (2); +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; +select * from (select * from t1) a; +show status like "Qcache_queries_in_cache"; +show status like "Qcache_inserts"; +show status like "Qcache_hits"; +drop table t1; + set GLOBAL query_cache_size=0; |