summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition_truncate.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/partition_truncate.test')
-rw-r--r--mysql-test/t/partition_truncate.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/partition_truncate.test b/mysql-test/t/partition_truncate.test
index 93b9cf62d14..165213d204c 100644
--- a/mysql-test/t/partition_truncate.test
+++ b/mysql-test/t/partition_truncate.test
@@ -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;