mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
15 lines
456 B
Text
15 lines
456 B
Text
--source include/have_innodb.inc
|
|
--source include/have_partition.inc
|
|
|
|
CREATE TABLE t1(a INT, b VARCHAR(10), INDEX(a))ENGINE=InnoDB
|
|
PARTITION BY RANGE(a)
|
|
(PARTITION pa VALUES LESS THAN (3),
|
|
PARTITION pb VALUES LESS THAN (5));
|
|
|
|
--error ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
|
|
CREATE TABLE t2(a INT, FOREIGN KEY(a) REFERENCES t1(a))ENGINE=INNODB
|
|
PARTITION BY RANGE(a)
|
|
(PARTITION pa VALUES LESS THAN (2),
|
|
PARTITION pb VALUES LESS THAN (4));
|
|
|
|
DROP TABLE t1;
|