~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

Viewing changes to mysql-test/r/cache_innodb.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
SET SESSION STORAGE_ENGINE = InnoDB;
2
2
drop table if exists t1,t2,t3;
 
3
set @save_query_cache_size = @@global.query_cache_size;
 
4
set GLOBAL query_cache_size = 1355776;
3
5
flush status;
4
6
set autocommit=0;
5
7
create table t1 (a int not null);
100
102
Variable_name   Value
101
103
Qcache_queries_in_cache 2
102
104
drop table t3,t2,t1;
103
 
CREATE TABLE t1 (id int(11) NOT NULL auto_increment, PRIMARY KEY  (id));
 
105
CREATE TABLE t1 (id int(11) NOT NULL auto_increment, PRIMARY KEY (id));
104
106
select count(*) from t1;
105
107
count(*)
106
108
0
109
111
count(*)
110
112
1
111
113
drop table t1;
112
 
set GLOBAL query_cache_size=1355776;
113
114
CREATE TABLE t1 ( id int(10) NOT NULL auto_increment, a varchar(25) default NULL, PRIMARY KEY  (id), UNIQUE KEY a (a));
114
115
CREATE TABLE t2 ( id int(10) NOT NULL auto_increment, b varchar(25) default NULL, PRIMARY KEY  (id), UNIQUE KEY b (b));
115
116
CREATE TABLE t3 ( id int(10) NOT NULL auto_increment, t1_id int(10) NOT NULL default '0', t2_id int(10) NOT NULL default '0', state int(11) default NULL, PRIMARY KEY  (id), UNIQUE KEY t1_id (t1_id,t2_id), KEY t2_id (t2_id,t1_id), CONSTRAINT `t3_ibfk_1` FOREIGN KEY (`t1_id`) REFERENCES `t1` (`id`), CONSTRAINT `t3_ibfk_2` FOREIGN KEY (`t2_id`) REFERENCES `t2` (`id`));
218
219
show status like "Qcache_hits";
219
220
Variable_name   Value
220
221
Qcache_hits     1
221
 
set GLOBAL query_cache_size=1048576;
 
222
set @@global.query_cache_size = @save_query_cache_size;
222
223
drop table t2;
223
224
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
224
225
BEGIN;