~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
--source include/have_partition.inc
2
2
--source include/have_innodb_plugin.inc
3
 
# Remove the line below when bug#53307 is solved.
4
 
--source include/not_valgrind.inc
5
3
 
6
4
let $MYSQLD_DATADIR= `SELECT @@datadir`;
7
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 #
 
10
call mtr.add_suppression("contains 2 indexes inside InnoDB, which is different from the number of indexes 1 defined in the MySQL");
 
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
 
 
30
DROP TABLE t1;
 
31
 
8
32
call mtr.add_suppression("nnoDB: Error: table `test`.`t1` .* Partition.* InnoDB internal");
9
33
--echo #
10
34
--echo # Bug#55091: Server crashes on ADD PARTITION after a failed attempt
11
35
--echo #
12
 
SET @old_innodb_file_format_check = @@global.innodb_file_format_check;
13
36
SET @old_innodb_file_format = @@global.innodb_file_format;
14
37
SET @old_innodb_file_per_table = @@global.innodb_file_per_table;
15
38
SET @old_innodb_strict_mode = @@global.innodb_strict_mode;
68
91
SET @@global.innodb_strict_mode = @old_innodb_strict_mode;
69
92
SET @@global.innodb_file_format = @old_innodb_file_format;
70
93
SET @@global.innodb_file_per_table = @old_innodb_file_per_table;
71
 
SET @@global.innodb_file_format_check = @old_innodb_file_format_check;
72
94
 
73
95
#
74
96
# Bug#32430 - show engine innodb status causes errors