~xnox/ubuntu/saucy/drizzle/merge

« back to all changes in this revision

Viewing changes to plugin/memcached_query_cache/tests/t/query_cache_flush.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.2.11) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20120619104649-9ij634mxm4x8pp4l
Tags: 1:7.1.36-stable-1ubuntu1
* Merge from Debian unstable. (LP: #987575)
  Remaining changes:
  - Added upstart script.
* debian/drizzle.upstart: dropped logger since upstart logs job
  output now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# we are assuming the memcached binary is contained in PATH or
2
 
# common directories we might expect it to be in
3
 
--exec sh ../plugin/memcached_query_cache/start_mc.sh stop
4
 
--exec sh ../plugin/memcached_query_cache/start_mc.sh start
5
 
 
6
 
--disable_warnings
7
 
DROP TABLE IF EXISTS `t1`;
8
 
--enable_warnings
9
 
 
10
 
--replace_result $MC_PORT MC_A_PORT
11
 
set global query_cache_servers= "127.0.0.1:$MC_PORT";
12
 
 
13
 
CREATE TABLE `t1` (id integer NOT NULL auto_increment primary key, name varchar(20), age int);
14
 
INSERT INTO `t1` (name, age) values ("leila", 20);
15
 
INSERT INTO `t1` (name, age) values ("lockman", 2);
16
 
INSERT INTO `t1` (name, age) values ("ali", 22);
17
 
 
18
 
set query_cache_enable= ON;
19
 
select * from t1;
20
 
select * from t1;
21
 
select d.schema, d.sql from data_dictionary.query_cache_entries d where d.sql like "select * from t1";
22
 
select query_cache_flush();
23
 
select d.schema, d.sql from data_dictionary.query_cache_entries d where d.sql like "select * from t1";
24
 
select count(*) from data_dictionary.query_cache_entries d;
25
 
select * from t1;
26
 
select count(*) from data_dictionary.query_cache_entries d;
27
 
select d.schema, d.sql from data_dictionary.query_cache_entries d where d.sql like "select * from t1";
28
 
 
29
 
 
30
 
--exec sh  ../plugin/memcached_query_cache/start_mc.sh stop
31