diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-02-15 17:13:48 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-02-23 15:33:21 +0100 |
commit | 9f6a7ed2d78af260838658369e7b3308f21d55ec (patch) | |
tree | 10f4e8e8a55696b578c959892d1c471acd1c51f1 /mysql-test/suite/versioning/r | |
parent | 187a163c782fc54225f6a096d4ec2240bde0f145 (diff) | |
download | mariadb-git-9f6a7ed2d78af260838658369e7b3308f21d55ec.tar.gz |
SQL: Truncate history of partitioned table [fixes #399, closes #403]
also, don't rotate versioning partitions for DELETE HISTORY
originally by: Aleksey Midenkov
Diffstat (limited to 'mysql-test/suite/versioning/r')
-rw-r--r-- | mysql-test/suite/versioning/r/truncate.result | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mysql-test/suite/versioning/r/truncate.result b/mysql-test/suite/versioning/r/truncate.result index 48b7fbbcf55..68f37aaf4ef 100644 --- a/mysql-test/suite/versioning/r/truncate.result +++ b/mysql-test/suite/versioning/r/truncate.result @@ -45,15 +45,24 @@ call truncate_sp; select * from t for system_time all; a drop procedure truncate_sp; -### Issue #399, truncate partitioned table is now unimplemented +# Truncate partitioned create or replace table t (a int) with system versioning engine myisam -partition by system_time ( +partition by system_time limit 1 ( partition p0 history, +partition p1 history, partition pn current); +insert into t values (1); +update t set a= 2; +update t set a= 3; +Warnings: +Note 4114 Versioned table `test`.`t`: switching from partition `p0` to `p1` delete history from t; -ERROR 42000: The used command is not allowed with this MariaDB version +select * from t for system_time all; +a +3 +# VIEW create or replace table t (i int) with system versioning; delete history from t; create or replace view v as select * from t; |