mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Removed redundant partitioning check
This check was introduced in602a222
and then became redundant in ad1553e, where we attempt to open a table even for non-copy algorithms. Added missing test case from602a222
. Part of MDEV-17805 - Remove InnoDB cache for temporary tables.
This commit is contained in:
@ -665,6 +665,25 @@ OPTIMIZE TABLE t1;
|
||||
SET SESSION sql_mode = @old_mode;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Bug#57985 "ONLINE/FAST ALTER PARTITION can fail and leave the
|
||||
--echo # table unusable".
|
||||
--echo #
|
||||
CREATE TABLE t1 (a bigint not null, b int not null, PRIMARY KEY (a))
|
||||
ENGINE = InnoDB PARTITION BY KEY(a) PARTITIONS 2;
|
||||
INSERT INTO t1 values (0,1), (1,2);
|
||||
--echo # The below ALTER should fail. It should leave the
|
||||
--echo # table in its original, non-corrupted, usable state.
|
||||
--error ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
|
||||
ALTER TABLE t1 ADD UNIQUE KEY (b);
|
||||
--echo # The below statements should succeed, as ALTER should
|
||||
--echo # have left table intact.
|
||||
SHOW CREATE TABLE t1;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Bug#57985 "ONLINE/FAST ALTER PARTITION can fail and leave the
|
||||
--echo # table unusable".
|
||||
|
Reference in New Issue
Block a user