31 lines
882 B
Plaintext
31 lines
882 B
Plaintext
# The include statement below is a temp one for tests that are yet to
|
|
#be ported to run with InnoDB,
|
|
#but needs to be kept for tests that would need MyISAM in future.
|
|
--source include/force_myisam_default.inc
|
|
|
|
--source include/have_query_cache.inc
|
|
--source include/have_ndb.inc
|
|
|
|
USE ndbinfo;
|
|
|
|
# BUG#59831 ndbinfo - counters not increasing after first query
|
|
# - ndbinfo tables should never be cached in query cache
|
|
|
|
# Turn on and reset query cache
|
|
set GLOBAL query_cache_type=on;
|
|
set GLOBAL query_cache_size=1355776;
|
|
reset query cache;
|
|
flush status;
|
|
|
|
# Perform same query several times, which were inserted
|
|
# in the cache before fix but not inserted anymore
|
|
--disable_result_log
|
|
select * from counters;
|
|
select * from counters;
|
|
select * from counters;
|
|
--enable_result_log
|
|
show status like "Qcache_queries_in_cache";
|
|
show status like "Qcache_inserts";
|
|
|
|
SET GLOBAL query_cache_size=0;
|