From 83418ca1b22b4fde7046acfde328312e0d5af90c Mon Sep 17 00:00:00 2001 From: crazycs Date: Fri, 2 Dec 2022 14:45:50 +0800 Subject: [PATCH] Update ddl/foreign_key_test.go Co-authored-by: tangenta --- ddl/foreign_key_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddl/foreign_key_test.go b/ddl/foreign_key_test.go index d53d84f328c78..07d079112133e 100644 --- a/ddl/foreign_key_test.go +++ b/ddl/foreign_key_test.go @@ -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);")