summaryrefslogtreecommitdiff
path: root/mysql-test/t/query_cache.test
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-10-21 23:56:12 +0300
committerunknown <bell@sanja.is.com.ua>2004-10-21 23:56:12 +0300
commitb50b1dd3a4b9cf5e4e9a6c33961b007becbda6bc (patch)
treeadba151b89c3f3b0d8b6812947bd34aa47f36a7d /mysql-test/t/query_cache.test
parent0a505ccc080eca79903103d081da8214bcd51d47 (diff)
downloadmariadb-git-b50b1dd3a4b9cf5e4e9a6c33961b007becbda6bc.tar.gz
Check of temporary tables hiding for query fetched from QC (BUG#6084)
mysql-test/r/query_cache.result: hiding real table stored in query cache by temporary table mysql-test/t/query_cache.test: hiding real table stored in query cache by temporary table sql/sql_cache.cc: Check of temporary tables hiding for query fetched from QC sql/sql_cache.h: Key length now stored in table record of query cache
Diffstat (limited to 'mysql-test/t/query_cache.test')
-rw-r--r--mysql-test/t/query_cache.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test
index 8a07c0a53a0..61fbadde1e1 100644
--- a/mysql-test/t/query_cache.test
+++ b/mysql-test/t/query_cache.test
@@ -521,4 +521,16 @@ unlock table;
drop table t1,t2;
set query_cache_wlock_invalidate=default;
+#
+# hiding real table stored in query cache by temporary table
+#
+CREATE TABLE t1 (id INT PRIMARY KEY);
+insert into t1 values (1),(2),(3);
+select * from t1;
+create temporary table t1 (a int not null auto_increment
+primary key);
+select * from t1;
+drop table t1;
+drop table t1;
+
set GLOBAL query_cache_size=0;