~ubuntu-branches/ubuntu/raring/mysql-5.5/raring-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/partition_innodb_plugin.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:
3
3
 
4
4
let $MYSQLD_DATADIR= `SELECT @@datadir`;
5
5
 
 
6
--echo #
 
7
--echo # Bug#11766879/Bug#60106: DIFF BETWEEN # OF INDEXES IN MYSQL VS INNODB,
 
8
--echo #                         PARTITONING, ON INDEX CREATE
 
9
--echo # Bug#12696518: MEMORY LEAKS IN HA_PARTITION (VALGRIND TESTS ON TRUNK)
 
10
--echo #
 
11
CREATE TABLE t1 (
 
12
  id bigint NOT NULL AUTO_INCREMENT,
 
13
  time date,
 
14
  id2 bigint not null,
 
15
  PRIMARY KEY (id,time)
 
16
) ENGINE=InnoDB  DEFAULT CHARSET=utf8
 
17
/*!50100 PARTITION BY RANGE(TO_DAYS(time))
 
18
(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
 
19
 PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */;
 
20
 
 
21
INSERT INTO t1 (time,id2) VALUES ('2011-07-24',1);
 
22
INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
 
23
INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
 
24
 
 
25
--error ER_DUP_ENTRY
 
26
CREATE UNIQUE INDEX uk_time_id2 on t1(time,id2);
 
27
 
 
28
SELECT COUNT(*) FROM t1; 
 
29
SHOW CREATE TABLE t1;
 
30
 
 
31
DROP TABLE t1;
 
32
 
6
33
call mtr.add_suppression("nnoDB: Error: table `test`.`t1` .* Partition.* InnoDB internal");
7
34
--echo #
8
35
--echo # Bug#55091: Server crashes on ADD PARTITION after a failed attempt
9
36
--echo #
10
 
SET @old_innodb_file_format_max = @@global.innodb_file_format_max;
11
37
SET @old_innodb_file_format = @@global.innodb_file_format;
12
38
SET @old_innodb_file_per_table = @@global.innodb_file_per_table;
13
39
SET @old_innodb_strict_mode = @@global.innodb_strict_mode;
66
92
SET @@global.innodb_strict_mode = @old_innodb_strict_mode;
67
93
SET @@global.innodb_file_format = @old_innodb_file_format;
68
94
SET @@global.innodb_file_per_table = @old_innodb_file_per_table;
69
 
SET @@global.innodb_file_format_max = @old_innodb_file_format_max;
70
95
 
71
96
#
72
97
# Bug#32430 - show engine innodb status causes errors