We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebcbe18 commit 018924bCopy full SHA for 018924b
ddl/db_partition_test.go
@@ -1495,3 +1495,12 @@ func (s *testIntegrationSuite3) TestUnsupportedPartitionManagementDDLs(c *C) {
1495
_, err = tk.Exec("alter table test_1465 partition by hash(a)")
1496
c.Assert(err, ErrorMatches, ".*alter table partition is unsupported")
1497
}
1498
+
1499
+func (s *testIntegrationSuite8) TestTruncateTableWithPartition(c *C) {
1500
+ tk := testkit.NewTestKit(c, s.store)
1501
+ tk.MustExec("use test;")
1502
+ tk.MustExec("drop table if exists test_4414;")
1503
+ tk.MustExec("create table test_4414(a int, b int) partition by hash(a) partitions 10;")
1504
+ tk.MustExec("truncate table test_4414;")
1505
+ tk.MustQuery("select * from test_4414 partition (p0)").Check(testkit.Rows())
1506
+}
0 commit comments