Debian Codegraph @

mysql-test/suite/parts/r/partition_alter_innodb.result

raw
1 #
2 # MDEV-14641 Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine
3 #
4 CREATE TABLE t1 (i INT) ENGINE=InnoDB PARTITION BY LIST(i) (PARTITION p0 VALUES IN (1), PARTITION p1 VALUES IN (2));;
5 ALTER TABLE t1 ROW_FORMAT=COMPRESSED;
6 ALTER TABLE t1 DROP PARTITION p1;
7 SELECT * FROM t1;
8 i
9 DROP TABLE t1;
10 #
11 # MDEV-13788 Server crash when issuing bad SQL partition syntax
12 #
13 CREATE TABLE t1 (id int, d date) ENGINE=InnoDB PARTITION BY RANGE COLUMNS(d) (PARTITION p1 VALUES LESS THAN (MAXVALUE));
14 SHOW CREATE TABLE t1;
15 Table Create Table
16 t1 CREATE TABLE `t1` (
17 `id` int(11) DEFAULT NULL,
18 `d` date DEFAULT NULL
19 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
20 PARTITION BY RANGE COLUMNS(`d`)
21 (PARTITION `p1` VALUES LESS THAN (MAXVALUE) ENGINE = InnoDB)
22 ALTER TABLE t1 REORGANIZE PARTITION p1 INTO
23 (
24 PARTITION p2, /* Notice no values */
25 PARTITION p3 VALUES LESS THAN (MAXVALUE)
26 );
27 ERROR HY000: Syntax error: RANGE PARTITIONING requires definition of VALUES LESS THAN for each partition
28 DROP TABLE t1;
29 CREATE TABLE t1 (id int, d date) ENGINE=InnoDB PARTITION BY LIST (id) (PARTITION p1 VALUES IN (1,2,3));
30 SHOW CREATE TABLE t1;
31 Table Create Table
32 t1 CREATE TABLE `t1` (
33 `id` int(11) DEFAULT NULL,
34 `d` date DEFAULT NULL
35 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
36 PARTITION BY LIST (`id`)
37 (PARTITION `p1` VALUES IN (1,2,3) ENGINE = InnoDB)
38 ALTER TABLE t1 REORGANIZE PARTITION p1 INTO
39 (
40 PARTITION p2, /* Notice no values */
41 PARTITION p3 VALUES IN (4,5,6)
42 );
43 ERROR HY000: Syntax error: LIST PARTITIONING requires definition of VALUES IN for each partition
44 DROP TABLE t1;
45 #
46 # MDEV-15456 Server crashes upon adding or dropping a partition in ALTER under LOCK TABLE after ER_SAME_NAME_PARTITION
47 #
48 create table t1 (i int) engine=InnoDB partition by range(i) (partition p0 values less than (10));
49 lock table t1 write;
50 alter table t1 add partition (partition p0 values less than (20));
51 ERROR HY000: Duplicate partition name p0
52 alter table t1 add partition (partition p1 values less than (20)) /* comment */;
53 drop table t1;
54 #
55 # MDEV-27065 Partitioning tables with custom data directories moves data back to default directory
56 #
57 ALTER TABLE t1 PARTITION BY RANGE(id)(
58 PARTITION p0 VALUES LESS THAN (1000),
59 PARTITION p1 VALUES LESS THAN MAXVALUE
60 );
61 Warnings:
62 Warning 1618 <DATA DIRECTORY> table option of old schema is ignored
63 DROP TABLE t1;
64 #
65 # MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION
66 #
67 CREATE TABLE t1 (c INT) ENGINE=InnoDB PARTITION BY KEY(c) PARTITIONS 4;;
68 LOCK TABLES t1 WRITE, t1 AS a READ;
69 ALTER TABLE t1 REBUILD PARTITION p0;
70 DROP TABLE t1;
71 #
72 # MDEV-28079 Shutdown hangs after altering innodb partition fts table
73 #
74 CREATE TABLE t1(f1 INT, f2 CHAR(100))ENGINE=InnoDB STATS_PERSISTENT=0
75 PARTITION BY HASH(f1) PARTITIONS 2;
76 ALTER TABLE t1 ADD FULLTEXT(f2);
77 InnoDB 0 transactions not purged
78 DROP TABLE t1;
79 # End of 10.6 tests
80 #
81 # MDEV-38948 Assertion `time.valid(undo->top_undo_no)' fails
82 # upon ALTER IGNORE on partitioned table
83 #
84 CREATE TABLE t1(a INT) ENGINE=InnoDB PARTITION BY LIST (a)
85 (PARTITION p0 VALUES IN (1,2), PARTITION pdef DEFAULT);
86 INSERT INTO t1 VALUES (1),(6);
87 ALTER IGNORE TABLE t1 FORCE, ALGORITHM=COPY;
88 DROP TABLE t1;