~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/memcached_query_cache/tests/r/query_cache_flush.result

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
DROP TABLE IF EXISTS `t1`;
2
 
set global query_cache_servers= "127.0.0.1:$MC_PORT";
3
 
CREATE TABLE `t1` (id integer NOT NULL auto_increment primary key, name varchar(20), age int);
4
 
INSERT INTO `t1` (name, age) values ("leila", 20);
5
 
INSERT INTO `t1` (name, age) values ("lockman", 2);
6
 
INSERT INTO `t1` (name, age) values ("ali", 22);
7
 
set query_cache_enable= ON;
8
 
select * from t1;
9
 
id      name    age
10
 
1       leila   20
11
 
2       lockman 2
12
 
3       ali     22
13
 
select * from t1;
14
 
id      name    age
15
 
1       leila   20
16
 
2       lockman 2
17
 
3       ali     22
18
 
select d.schema, d.sql from data_dictionary.query_cache_entries d where d.sql like "select * from t1";
19
 
schema  sql
20
 
test    select * from t1
21
 
select query_cache_flush();
22
 
query_cache_flush()
23
 
1
24
 
select d.schema, d.sql from data_dictionary.query_cache_entries d where d.sql like "select * from t1";
25
 
schema  sql
26
 
select count(*) from data_dictionary.query_cache_entries d;
27
 
count(*)
28
 
0
29
 
select * from t1;
30
 
id      name    age
31
 
1       leila   20
32
 
2       lockman 2
33
 
3       ali     22
34
 
select count(*) from data_dictionary.query_cache_entries d;
35
 
count(*)
36
 
1
37
 
select d.schema, d.sql from data_dictionary.query_cache_entries d where d.sql like "select * from t1";
38
 
schema  sql
39
 
test    select * from t1