From fe1acd6dce144cb2668ee6a11fa50f885837b529 Mon Sep 17 00:00:00 2001 From: Sneha Modi Date: Thu, 10 Nov 2011 12:04:23 +0530 Subject: [PATCH] Bug#11754170:45729: TEST CASE FOR BUG#28211 IS DISABLED IN QUERY_CACHE.TEST A patch for this bug has already been pushed. A minor change is made here. The database to be used after re-enabling the disabled code is 'TEST'. But instead, 'MYSQL' was being used. This is the minor change that is being made here. --- mysql-test/r/query_cache.result | 8 ++++---- mysql-test/t/query_cache.test | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result index 9e7f427502b..8132f3e9e0a 100644 --- a/mysql-test/r/query_cache.result +++ b/mysql-test/r/query_cache.result @@ -1615,7 +1615,7 @@ use db3; create table t1(c1 int) engine=myisam; use db1; insert into t1(c1) values (1); -use mysql; +use test; select * from db1.t1; c1 1 @@ -1661,7 +1661,7 @@ c1 2 SHOW STATUS LIKE 'Qcache_hits'; Variable_name Value -Qcache_hits 0 +Qcache_hits 1 DROP TABLE t1; SET GLOBAL concurrent_insert= @save_concurrent_insert; SET GLOBAL query_cache_size= default; @@ -1691,7 +1691,7 @@ a COMMIT; SHOW STATUS LIKE 'Qcache_queries_in_cache'; Variable_name Value -Qcache_queries_in_cache 0 +Qcache_queries_in_cache 2 SHOW STATUS LIKE "Qcache_hits"; Variable_name Value Qcache_hits 0 @@ -1713,7 +1713,7 @@ a COMMIT; SHOW STATUS LIKE "Qcache_hits"; Variable_name Value -Qcache_hits 0 +Qcache_hits 2 DROP TABLE t1; SET GLOBAL query_cache_size= default; End of 5.0 tests diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test index caf57f343eb..49a8817fe6b 100644 --- a/mysql-test/t/query_cache.test +++ b/mysql-test/t/query_cache.test @@ -1224,7 +1224,7 @@ show status like 'Qcache_free_blocks'; create table t1(c1 int) engine=myisam; use db1; insert into t1(c1) values (1); - use mysql; + use test; select * from db1.t1; select c1+1 from db1.t1; select * from db3.t1;