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

« back to all changes in this revision

Viewing changes to mysql-test/t/partition_key_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:
239
239
CACHE INDEX t1 PARTITION (p0) KEY (`inx_b`) IN hot_cache;
240
240
CACHE INDEX t1 INDEX (`inx_b`) IN hot_cache;
241
241
DROP TABLE t1,t2;
 
242
 
 
243
--echo #
 
244
--echo # Bug#12361113: crash when load index into cache
 
245
--echo #
 
246
--echo # Note that this creates an empty disabled key cache!
 
247
SET GLOBAL key_cache_none.key_cache_block_size = 1024;
 
248
CREATE TABLE t1 (a INT, b INTEGER NOT NULL, KEY (b) )
 
249
ENGINE = MYISAM
 
250
PARTITION BY HASH(a) PARTITIONS 2;
 
251
INSERT INTO t1 VALUES (1, 1);
 
252
--error ER_UNKNOWN_KEY_CACHE
 
253
CACHE INDEX t1 IN key_cache_none;
 
254
--error ER_UNKNOWN_KEY_CACHE
 
255
CACHE INDEX t1 PARTITION (p0) IN key_cache_none;
 
256
--error ER_UNKNOWN_KEY_CACHE
 
257
CACHE INDEX t1 PARTITION (p1) IN key_cache_none;
 
258
--error ER_UNKNOWN_KEY_CACHE
 
259
CACHE INDEX t1 PARTITION (p0) KEY (`b`) IN key_cache_none;
 
260
--error ER_UNKNOWN_KEY_CACHE
 
261
CACHE INDEX t1 PARTITION (p1) KEY (`b`) IN key_cache_none;
 
262
--echo # The bug crashed the server at LOAD INDEX below. Now it will succeed
 
263
--echo # since the default cache is used due to CACHE INDEX failed for
 
264
--echo # key_cache_none.
 
265
LOAD INDEX INTO CACHE t1;
 
266
DROP TABLE t1;
 
267
 
 
268
 
 
269
--echo # Clean up
242
270
SET GLOBAL hot_cache.key_buffer_size = 0;
243
271
SET GLOBAL warm_cache.key_buffer_size = 0;
244
272
SET @@global.cold_cache.key_buffer_size = 0;