diff options
author | jimw@mysql.com <> | 2005-03-07 18:15:19 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-03-07 18:15:19 -0800 |
commit | df84c534ddea900333b77d3537cfa55f9e7b99b7 (patch) | |
tree | 0dcef42e1652a287a31afeb7c904b298a5e66382 /mysql-test/r/query_cache.result | |
parent | b5528a8dc6f85d20c13c5afbdfa23177ef1101d7 (diff) | |
download | mariadb-git-df84c534ddea900333b77d3537cfa55f9e7b99b7.tar.gz |
Flush entries from the query cache for tables used in
administrative statements that may alter the table, such
as REPAIR TABLE. (Bug #8480)
Diffstat (limited to 'mysql-test/r/query_cache.result')
-rw-r--r-- | mysql-test/r/query_cache.result | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result index 85fe77b1f10..af86f67f8c3 100644 --- a/mysql-test/r/query_cache.result +++ b/mysql-test/r/query_cache.result @@ -717,4 +717,24 @@ select * from t1; a drop table t1; drop table t1; +set global query_cache_size=1024*1024; +flush query cache; +create table t1 ( a int ); +insert into t1 values (1); +select a from t1; +a +1 +select a from t1; +a +1 +show status like 'qcache_queries_in_cache'; +Variable_name Value +Qcache_queries_in_cache 1 +repair table t1; +Table Op Msg_type Msg_text +test.t1 repair status OK +show status like 'qcache_queries_in_cache'; +Variable_name Value +Qcache_queries_in_cache 0 +drop table t1; set GLOBAL query_cache_size=0; |