From 31ec0b92633a9f0e0e1d54bf960fedd447fad64b Mon Sep 17 00:00:00 2001 From: crazycs520 Date: Fri, 23 Dec 2022 12:30:24 +0800 Subject: [PATCH] fix test Signed-off-by: crazycs520 --- ddl/db_partition_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ddl/db_partition_test.go b/ddl/db_partition_test.go index 38aa43e4e7755..f359687210efc 100644 --- a/ddl/db_partition_test.go +++ b/ddl/db_partition_test.go @@ -2246,14 +2246,6 @@ func TestExchangePartitionTableCompatiable(t *testing.T) { "alter table pt8 exchange partition p0 with table nt8;", dbterror.ErrTablesDifferentMetadata, }, - { - // foreign key test - // Partition table doesn't support to add foreign keys in mysql - "create table pt9 (id int not null primary key auto_increment,t_id int not null) partition by hash(id) partitions 1;", - "create table nt9 (id int not null primary key auto_increment, t_id int not null,foreign key fk_id (t_id) references pt5(id));", - "alter table pt9 exchange partition p0 with table nt9;", - dbterror.ErrPartitionExchangeForeignKey, - }, { // Generated column (virtual) "create table pt10 (id int not null, lname varchar(30), fname varchar(100) generated always as (concat(lname,' ')) virtual) partition by hash(id) partitions 1;",