Skip to content

Commit

Permalink
Update ddl/foreign_key_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: tangenta <tangenta@126.com>
  • Loading branch information
crazycs520 and tangenta authored Dec 2, 2022
1 parent 081cb2e commit 83418ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddl/foreign_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ func TestAddForeignKey(t *testing.T) {
require.Equal(t, 0, len(tbl2Info.ForeignKeys))
tk.MustGetDBError("alter table t2 drop index idx_c, add constraint fk_c foreign key (c) references t1(b)", dbterror.ErrDropIndexNeededInForeignKey)

// Test cyclical Dependencies add foreign key failed.
// Test circular dependency add foreign key failed.
tk.MustExec("drop table if exists t1,t2")
tk.MustExec("create table t1 (id int key,a int, index(a));")
tk.MustExec("create table t2 (id int key,a int, foreign key fk(a) references t1(id) ON DELETE CASCADE);")
Expand Down

0 comments on commit 83418ca

Please sign in to comment.