~michaeleguo/ubuntu/trusty/percona-xtradb-cluster-5.5/arm64fix

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-10 14:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20140210144423-f2134l2gxuvq2m6l
Tags: upstream-5.5.34-25.9+dfsg
ImportĀ upstreamĀ versionĀ 5.5.34-25.9+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t1;
 
2
CREATE TABLE t1 (a INT PRIMARY KEY)
 
3
ENGINE MYISAM
 
4
PARTITION BY HASH (a)
 
5
PARTITIONS 1;
 
6
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
 
7
ALTER TABLE t1 REORGANIZE PARTITION;
 
8
DROP TABLE t1;
 
9
create table t1 (a int)
 
10
partition by range (a)
 
11
subpartition by key (a)
 
12
(partition p0 values less than (10) (subpartition sp00, subpartition sp01),
 
13
partition p1 values less than (20) (subpartition sp10, subpartition sp11));
 
14
alter table t1 reorganize partition p0 into
 
15
(partition p0 values less than (10) (subpartition sp00,
 
16
subpartition sp01, subpartition sp02));
 
17
ERROR HY000: Wrong number of subpartitions defined, mismatch with previous setting
 
18
drop table t1;
 
19
CREATE TABLE t1 (f_date DATE, f_varchar VARCHAR(30))
 
20
PARTITION BY HASH(YEAR(f_date)) PARTITIONS 2;
 
21
SHOW CREATE TABLE t1;
 
22
Table   Create Table
 
23
t1      CREATE TABLE `t1` (
 
24
  `f_date` date DEFAULT NULL,
 
25
  `f_varchar` varchar(30) DEFAULT NULL
 
26
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
27
/*!50100 PARTITION BY HASH (YEAR(f_date))
 
28
PARTITIONS 2 */
 
29
ALTER TABLE t1 COALESCE PARTITION 1;
 
30
SHOW CREATE TABLE t1;
 
31
Table   Create Table
 
32
t1      CREATE TABLE `t1` (
 
33
  `f_date` date DEFAULT NULL,
 
34
  `f_varchar` varchar(30) DEFAULT NULL
 
35
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
36
/*!50100 PARTITION BY HASH (YEAR(f_date))
 
37
PARTITIONS 1 */
 
38
drop table t1;
 
39
create table t1 (a int)
 
40
partition by list (a)
 
41
subpartition by hash (a)
 
42
(partition p11 values in (1,2),
 
43
partition p12 values in (3,4));
 
44
alter table t1 REORGANIZE partition p11, p12 INTO
 
45
(partition p1 values in (1,2,3,4));
 
46
alter table t1 REORGANIZE partition p1 INTO
 
47
(partition p11 values in (1,2),
 
48
partition p12 values in (3,4));
 
49
drop table t1;
 
50
CREATE TABLE t1 (a INT)
 
51
/*!50100 PARTITION BY HASH (a)
 
52
/* Test
 
53
of multi-line
 
54
comment */
 
55
PARTITIONS 5 */;
 
56
SHOW CREATE TABLE t1;
 
57
Table   Create Table
 
58
t1      CREATE TABLE `t1` (
 
59
  `a` int(11) DEFAULT NULL
 
60
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
61
/*!50100 PARTITION BY HASH (a)
 
62
PARTITIONS 5 */
 
63
DROP TABLE t1;
 
64
CREATE TABLE t1 (a INT)
 
65
/*!50100 PARTITION BY HASH (a)
 
66
-- with a single line comment embedded
 
67
PARTITIONS 5 */;
 
68
SHOW CREATE TABLE t1;
 
69
Table   Create Table
 
70
t1      CREATE TABLE `t1` (
 
71
  `a` int(11) DEFAULT NULL
 
72
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
73
/*!50100 PARTITION BY HASH (a)
 
74
PARTITIONS 5 */
 
75
DROP TABLE t1;
 
76
CREATE TABLE t1 (a INT)
 
77
/*!50100 PARTITION BY HASH (a)
 
78
PARTITIONS 5 */;
 
79
SHOW CREATE TABLE t1;
 
80
Table   Create Table
 
81
t1      CREATE TABLE `t1` (
 
82
  `a` int(11) DEFAULT NULL
 
83
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
84
/*!50100 PARTITION BY HASH (a)
 
85
PARTITIONS 5 */
 
86
DROP TABLE t1;
 
87
CREATE TABLE t1 (a INT) /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */;
 
88
SHOW CREATE TABLE t1;
 
89
Table   Create Table
 
90
t1      CREATE TABLE `t1` (
 
91
  `a` int(11) DEFAULT NULL
 
92
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
93
/*!50100 PARTITION BY HASH (a)
 
94
PARTITIONS 5 */
 
95
DROP TABLE t1;