mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
unify "partitioning cannot do X" error messages
This commit is contained in:
committed by
Sergei Golubchik
parent
3bef848226
commit
e6af62189e
@ -240,12 +240,12 @@ CREATE TABLE t1 (
|
||||
|
||||
ALTER TABLE t1 PARTITION BY HASH (id) PARTITIONS 1;
|
||||
|
||||
--error ER_FOREIGN_KEY_ON_PARTITIONED
|
||||
--error ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
|
||||
ALTER TABLE t1 ADD CONSTRAINT test_ibfk_1 FOREIGN KEY (parent_id) REFERENCES t2 (id);
|
||||
|
||||
ALTER TABLE t1 PARTITION BY HASH (id) PARTITIONS 2;
|
||||
|
||||
--error ER_FOREIGN_KEY_ON_PARTITIONED
|
||||
--error ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING
|
||||
ALTER TABLE t1 ADD CONSTRAINT test_ibfk_1 FOREIGN KEY (parent_id) REFERENCES t2 (id);
|
||||
|
||||
DROP TABLE t1, t2;
|
||||
|
Reference in New Issue
Block a user