Here is part ofthe patch in mysql-test/t/query_cache.test:
--echo New query cache switching OFF mechanism test
set global query_cache_size=1024*1024*20;
set global query_cache_type=on;
select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
set global query_cache_size=0;
select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
set global query_cache_size=1024*1024*20;
select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
set global query_cache_type=off;
select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
set global query_cache_type=on;
select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
set local query_cache_type= on;
select @@query_cache_size, @@global.query_cache_type, @@local.query_cache_type;
Here is part ofthe patch in mysql-test/ t/query_ cache.test:
--echo New query cache switching OFF mechanism test size=1024* 1024*20; type=on; query_cache_ type, @@local. query_cache_ type; query_cache_ type, @@local. query_cache_ type; size=1024* 1024*20; query_cache_ type, @@local. query_cache_ type; type=off; query_cache_ type, @@local. query_cache_ type; type=on; query_cache_ type, @@local. query_cache_ type; query_cache_ type, @@local. query_cache_ type;
set global query_cache_
set global query_cache_
select @@query_cache_size, @@global.
set global query_cache_size=0;
select @@query_cache_size, @@global.
set global query_cache_
select @@query_cache_size, @@global.
set global query_cache_
select @@query_cache_size, @@global.
set global query_cache_
select @@query_cache_size, @@global.
set local query_cache_type= on;
select @@query_cache_size, @@global.