mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Create 'main' test directory and move 't' and 'r' there
This commit is contained in:
26
mysql-test/main/partition_truncate.result
Normal file
26
mysql-test/main/partition_truncate.result
Normal file
@ -0,0 +1,26 @@
|
||||
drop table if exists t1, t2, t3, t4;
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
(partition p1 values in (0));
|
||||
alter table t1 truncate partition p1,p1;
|
||||
ERROR HY000: Incorrect partition name
|
||||
alter table t1 truncate partition p0;
|
||||
ERROR HY000: Unknown partition 'p0' in table 't1'
|
||||
drop table t1;
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
subpartition by hash (a)
|
||||
subpartitions 1
|
||||
(partition p1 values in (1)
|
||||
(subpartition sp1));
|
||||
alter table t1 truncate partition sp1;
|
||||
ERROR HY000: Incorrect partition name
|
||||
drop table t1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1), (3), (8);
|
||||
alter table t1 truncate partition p0;
|
||||
ERROR HY000: Partition management on a not partitioned table is not possible
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
3
|
||||
drop table t1;
|
Reference in New Issue
Block a user