1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: disable truncate history on partitioned [fixes #399]

This commit is contained in:
Aleksey Midenkov
2017-12-14 19:11:02 +03:00
parent f96815fe97
commit ab5ec0f346
4 changed files with 30 additions and 0 deletions

View File

@ -28,4 +28,16 @@ select * from t for system_time all;
truncate table t to system_time timestamp now(6);
select * from t for system_time all;
--echo ### Issue #399, truncate partitioned table is now unimplemented
create or replace table t (a int)
with system versioning
engine myisam
partition by system_time (
partition p0 versioning,
partition pn as of current_timestamp);
--error ER_NOT_ALLOWED_COMMAND
truncate table t to system_time current_timestamp;
drop table t;