~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to mysql-test/t/query_cache.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1193
1193
show status like 'Qcache_free_blocks';
1194
1194
 
1195
1195
--echo Restore default values.
1196
 
# Bug#28211 RENAME DATABASE and query cache don't play nicely together
1197
 
#
1198
 
# TODO: enable these tests when RENAME DATABASE is implemented.
1199
 
# --disable_warnings
1200
 
# drop database if exists db1;
1201
 
# drop database if exists db2;
1202
 
# --enable_warnings
1203
 
# set GLOBAL query_cache_size=15*1024*1024;
1204
 
# create database db1;
1205
 
# use db1;
1206
 
# create table t1(c1 int)engine=myisam;
1207
 
# insert into t1(c1) values (1);
1208
 
# select * from db1.t1 f;
1209
 
# show status like 'Qcache_queries_in_cache';
1210
 
# rename schema db1 to db2;
1211
 
# show status like 'Qcache_queries_in_cache';
1212
 
# drop database db2;
1213
 
# set global query_cache_size=default;
1214
 
#
1215
 
# --disable_warnings
1216
 
# drop database if exists db1;
1217
 
# drop database if exists db3;
1218
 
# --enable_warnings
1219
 
# set GLOBAL query_cache_size=15*1024*1024;
1220
 
# create database db1;
1221
 
# create database db3;
1222
 
# use db1;
1223
 
# create table t1(c1 int) engine=myisam;
1224
 
# use db3;
1225
 
# create table t1(c1 int) engine=myisam;
1226
 
# use db1;
1227
 
# insert into t1(c1) values (1);
1228
 
# use mysql;
1229
 
# select * from db1.t1;
1230
 
# select c1+1 from db1.t1;
1231
 
# select * from db3.t1;
1232
 
# show status like 'Qcache_queries_in_cache';
1233
 
# rename schema db1 to db2;
1234
 
# show status like 'Qcache_queries_in_cache';
1235
 
# drop database db2;
1236
 
# drop database db3;
 
1196
 --disable_warnings
 
1197
 drop database if exists db1;
 
1198
 drop database if exists db2;
 
1199
 --enable_warnings
 
1200
 set GLOBAL query_cache_size=15*1024*1024;
 
1201
 create database db1;
 
1202
 use db1;
 
1203
 create table t1(c1 int)engine=myisam;
 
1204
 insert into t1(c1) values (1);
 
1205
 select * from db1.t1 f;
 
1206
 show status like 'Qcache_queries_in_cache';
 
1207
 create database db2;
 
1208
 rename table db1.t1 to db2.t2;
 
1209
 drop database db1;
 
1210
 show status like 'Qcache_queries_in_cache';
 
1211
 drop database db2;
 
1212
 set global query_cache_size=default;
 
1213
 
 
1214
 --disable_warnings
 
1215
 drop database if exists db1;
 
1216
 drop database if exists db3;
 
1217
 --enable_warnings
 
1218
 set GLOBAL query_cache_size=15*1024*1024;
 
1219
 create database db1;
 
1220
 create database db3;
 
1221
 use db1;
 
1222
 create table t1(c1 int) engine=myisam;
 
1223
 use db3;
 
1224
 create table t1(c1 int) engine=myisam;
 
1225
 use db1;
 
1226
 insert into t1(c1) values (1);
 
1227
 use test;
 
1228
 select * from db1.t1;
 
1229
 select c1+1 from db1.t1;
 
1230
 select * from db3.t1;
 
1231
 show status like 'Qcache_queries_in_cache';
 
1232
 create database db2;
 
1233
 rename table db1.t1 to db2.t2; 
 
1234
 drop database db1;
 
1235
 show status like 'Qcache_queries_in_cache';
 
1236
 drop database db2;
 
1237
 drop database db3;
1237
1238
 
1238
1239
set GLOBAL query_cache_type=default;
1239
1240
set GLOBAL query_cache_limit=default;