mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge shellback.(none):/home/msvensson/mysql/mysql-5.1
into shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
This commit is contained in:
@@ -1278,3 +1278,51 @@ Variable_name Value
|
||||
Last_query_cost 0.000000
|
||||
drop table t1;
|
||||
SET GLOBAL query_cache_size=0;
|
||||
set global query_cache_size=1024*1024;
|
||||
flush status;
|
||||
create table t1 (a int);
|
||||
insert into t1 (a) values (1), (2), (3);
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
show status like 'Qcache_hits';
|
||||
Variable_name Value
|
||||
Qcache_hits 0
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
show status like 'Qcache_hits';
|
||||
Variable_name Value
|
||||
Qcache_hits 1
|
||||
create table t2 like t1;
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
show status like 'Qcache_hits';
|
||||
Variable_name Value
|
||||
Qcache_hits 2
|
||||
insert into t2 select * from t1;
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
show status like 'Qcache_hits';
|
||||
Variable_name Value
|
||||
Qcache_hits 3
|
||||
drop table t1, t2;
|
||||
create table t1(c1 int);
|
||||
create table t2(c1 int);
|
||||
create table t3(c1 int);
|
||||
create view v1 as select t3.c1 as c1 from t3,t2 where t3.c1 = t2.c1;
|
||||
start transaction;
|
||||
insert into t1(c1) select c1 from v1;
|
||||
drop table t1, t2, t3;
|
||||
drop view v1;
|
||||
set global query_cache_size=0;
|
||||
|
||||
Reference in New Issue
Block a user