Current Path : /compat/linux/proc/self/root/home/usr.opt/mysql57/mysql-test/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/home/usr.opt/mysql57/mysql-test/t/query_cache_disabled.test |
-- source include/have_query_cache.inc # # Bug#38551 query cache can still consume [very little] cpu time even when it is off. # SHOW GLOBAL VARIABLES LIKE 'query_cache_type'; --error ER_QUERY_CACHE_DISABLED SET GLOBAL query_cache_type=ON; --error ER_QUERY_CACHE_DISABLED SET GLOBAL query_cache_type=DEMAND; SET GLOBAL query_cache_type=OFF; SET GLOBAL query_cache_size=1024*1024; SHOW GLOBAL VARIABLES LIKE 'query_cache_size'; SET GLOBAL query_cache_size=DEFAULT; --echo # --echo # BUG#16906827 - CAN'T SET QUERY_CACHE_TYPE TO 0 WHEN IT IS ALREADY 0 --echo # SHOW GLOBAL VARIABLES LIKE 'query_cache_type'; --echo # This statement will pass if run with the fix and fail with --echo # ER_QUERY_CACHE_DISABLED if run without the fix. SET GLOBAL query_cache_type=OFF; --error ER_QUERY_CACHE_DISABLED SET GLOBAL query_cache_type=ON; --error ER_QUERY_CACHE_DISABLED SET GLOBAL query_cache_type=DEMAND; --echo # This statement will pass if run with the fix and fail with --echo # ER_QUERY_CACHE_DISABLED if run without the fix. SET SESSION query_cache_type=OFF; --error ER_QUERY_CACHE_DISABLED SET SESSION query_cache_type=ON; --error ER_QUERY_CACHE_DISABLED SET SESSION query_cache_type=DEMAND;