mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
unify "partitioning cannot do X" error messages
This commit is contained in:
committed by
Sergei Golubchik
parent
3bef848226
commit
e6af62189e
@ -246,10 +246,10 @@ KEY parent_id (parent_id)
|
||||
) ENGINE=InnoDB;
|
||||
ALTER TABLE t1 PARTITION BY HASH (id) PARTITIONS 1;
|
||||
ALTER TABLE t1 ADD CONSTRAINT test_ibfk_1 FOREIGN KEY (parent_id) REFERENCES t2 (id);
|
||||
ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
|
||||
ERROR HY000: Partitioned tables do not support FOREIGN KEY
|
||||
ALTER TABLE t1 PARTITION BY HASH (id) PARTITIONS 2;
|
||||
ALTER TABLE t1 ADD CONSTRAINT test_ibfk_1 FOREIGN KEY (parent_id) REFERENCES t2 (id);
|
||||
ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
|
||||
ERROR HY000: Partitioned tables do not support FOREIGN KEY
|
||||
DROP TABLE t1, t2;
|
||||
create table t1 (a varchar(5), b int signed, c varchar(10), d datetime)
|
||||
partition by range columns(b,c)
|
||||
|
Reference in New Issue
Block a user