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

« back to all changes in this revision

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

  • 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:
 
1
#
 
2
# Bug#11766879/Bug#60106: DIFF BETWEEN # OF INDEXES IN MYSQL VS INNODB,
 
3
#                         PARTITONING, ON INDEX CREATE
 
4
# Bug#12696518: MEMORY LEAKS IN HA_PARTITION (VALGRIND TESTS ON TRUNK)
 
5
#
 
6
CREATE TABLE t1 (
 
7
id bigint NOT NULL AUTO_INCREMENT,
 
8
time date,
 
9
id2 bigint not null,
 
10
PRIMARY KEY (id,time)
 
11
) ENGINE=InnoDB  DEFAULT CHARSET=utf8
 
12
/*!50100 PARTITION BY RANGE(TO_DAYS(time))
 
13
(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
 
14
PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */;
 
15
INSERT INTO t1 (time,id2) VALUES ('2011-07-24',1);
 
16
INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
 
17
INSERT INTO t1 (time,id2) VALUES ('2011-07-25',1);
 
18
CREATE UNIQUE INDEX uk_time_id2 on t1(time,id2);
 
19
ERROR 23000: Duplicate entry '2011-07-25-1' for key 'uk_time_id2'
 
20
SELECT COUNT(*) FROM t1;
 
21
COUNT(*)
 
22
3
 
23
SHOW CREATE TABLE t1;
 
24
Table   Create Table
 
25
t1      CREATE TABLE `t1` (
 
26
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
 
27
  `time` date NOT NULL DEFAULT '0000-00-00',
 
28
  `id2` bigint(20) NOT NULL,
 
29
  PRIMARY KEY (`id`,`time`)
 
30
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8
 
31
/*!50100 PARTITION BY RANGE (TO_DAYS(time))
 
32
(PARTITION p10 VALUES LESS THAN (734708) ENGINE = InnoDB,
 
33
 PARTITION p20 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */
 
34
DROP TABLE t1;
1
35
call mtr.add_suppression("nnoDB: Error: table `test`.`t1` .* Partition.* InnoDB internal");
2
36
#
3
37
# Bug#55091: Server crashes on ADD PARTITION after a failed attempt
4
38
#
5
 
SET @old_innodb_file_format_max = @@global.innodb_file_format_max;
6
39
SET @old_innodb_file_format = @@global.innodb_file_format;
7
40
SET @old_innodb_file_per_table = @@global.innodb_file_per_table;
8
41
SET @old_innodb_strict_mode = @@global.innodb_strict_mode;
70
103
SET @@global.innodb_strict_mode = @old_innodb_strict_mode;
71
104
SET @@global.innodb_file_format = @old_innodb_file_format;
72
105
SET @@global.innodb_file_per_table = @old_innodb_file_per_table;
73
 
SET @@global.innodb_file_format_max = @old_innodb_file_format_max;
74
106
SET NAMES utf8;
75
107
CREATE TABLE `t``\""e` (a INT, PRIMARY KEY (a))
76
108
ENGINE=InnoDB