mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Bug#49907: ALTER TABLE ... TRUNCATE PARTITION does not wait for
locks on the table Fixing the partitioning specifics after TRUNCATE TABLE in bug-42643 was fixed. Reorganize of code to decrease the size of the giant switch in mysql_execute_command, and to prepare for future parser reengineering. Moved code into Sql_statement objects. Updated patch according to davi's review comments.
This commit is contained in:
@@ -24,3 +24,10 @@ subpartitions 1
|
||||
--error ER_WRONG_PARTITION_NAME
|
||||
alter table t1 truncate partition sp1;
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1), (3), (8);
|
||||
--error ER_PARTITION_MGMT_ON_NONPARTITIONED
|
||||
alter table t1 truncate partition p0;
|
||||
select count(*) from t1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user