Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <[email protected]>
  • Loading branch information
crazycs520 committed Dec 23, 2022
1 parent 6c708d0 commit 31ec0b9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ddl/db_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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;",
Expand Down

0 comments on commit 31ec0b9

Please sign in to comment.