diff options
Diffstat (limited to 'mysql-test/main/lowercase_table_qcache.test')
-rw-r--r-- | mysql-test/main/lowercase_table_qcache.test | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mysql-test/main/lowercase_table_qcache.test b/mysql-test/main/lowercase_table_qcache.test new file mode 100644 index 00000000..b6047a98 --- /dev/null +++ b/mysql-test/main/lowercase_table_qcache.test @@ -0,0 +1,37 @@ +-- source include/have_query_cache.inc +# +# Test of query cache with --lower-case-table-names +# +-- source include/no_view_protocol.inc + +set @save_query_cache_size=@@query_cache_size; +set GLOBAL query_cache_size=1355776; +set GLOBAL query_cache_type=ON; +set LOCAL query_cache_type=ON; + +--disable_warnings +drop database if exists MySQLtesT; +--enable_warnings + +create database MySQLtesT; +create table MySQLtesT.t1 (a int); +select * from MySQLtesT.t1; +show status like "Qcache_queries_in_cache"; +drop database mysqltest; +show status like "Qcache_queries_in_cache"; + +use MySQL; +disable_result_log; +select * from db; +enable_result_log; +show status like "Qcache_queries_in_cache"; +use test; +disable_result_log; +select * from MySQL.db; +enable_result_log; +show status like "Qcache_queries_in_cache"; + +set GLOBAL query_cache_size=@save_query_cache_size; +set GLOBAL query_cache_type=default; + +# End of 4.1 tests |