mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
0a5e4a0191
Updated tests: cases with bugs or which cannot be run with the cursor-protocol were excluded with "--disable_cursor_protocol"/"--enable_cursor_protocol" Fix for v.10.5
39 lines
950 B
Text
39 lines
950 B
Text
-- 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
|
|
|
|
--disable_cursor_protocol
|
|
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";
|
|
--enable_cursor_protocol
|
|
|
|
set GLOBAL query_cache_size=@save_query_cache_size;
|
|
set GLOBAL query_cache_type=default;
|
|
|
|
# End of 4.1 tests
|