~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1, t2;
2
2
#
 
3
# Bug#13694811: THE OPTIMIZER WRONGLY USES THE FIRST
 
4
#               INNODB PARTITION STATISTICS
 
5
#
 
6
CREATE TABLE t1
 
7
(a INT,
 
8
b varchar(64),
 
9
PRIMARY KEY (a),
 
10
KEY (b))
 
11
ENGINE = InnoDB
 
12
PARTITION BY RANGE (a)
 
13
SUBPARTITION BY HASH (a) SUBPARTITIONS 10
 
14
(PARTITION pNeg VALUES LESS THAN (0),
 
15
PARTITION p0 VALUES LESS THAN (1000),
 
16
PARTITION pMAX VALUES LESS THAN MAXVALUE);
 
17
# Only one row in the first 10 subpartitions
 
18
INSERT INTO t1 VALUES (-1, 'Only negative pk value');
 
19
INSERT INTO t1 VALUES (0, 'Mod Zero'), (1, 'One'), (2, 'Two'), (3, 'Three'),
 
20
(10, 'Zero'), (11, 'Mod One'), (12, 'Mod Two'), (13, 'Mod Three'),
 
21
(20, '0'), (21, '1'), (22, '2'), (23, '3'),
 
22
(4, '4'), (5, '5'), (6, '6'), (7, '7'), (8, '8'), (9, '9');
 
23
INSERT INTO t1 SELECT a + 30, b FROM t1 WHERE a >= 0;
 
24
ANALYZE TABLE t1;
 
25
Table   Op      Msg_type        Msg_text
 
26
test.t1 analyze status  OK
 
27
EXPLAIN SELECT b FROM t1 WHERE b between 'L' and 'N' AND a > -100;
 
28
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
29
1       SIMPLE  t1      range   PRIMARY,b       b       67      NULL    18      Using where; Using index
 
30
DROP TABLE t1;
 
31
#
3
32
# Bug#56287: crash when using Partition datetime in sub in query
4
33
#
5
34
CREATE TABLE t1