Skip to content

Commit ea1b153

Browse files
committed
rm violation on others
1 parent 26e0467 commit ea1b153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/plan/foreign_key_editor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func (reference *ForeignKeyReferenceHandler) CheckReference(ctx *sql.Context, ro
541541
}
542542
}
543543

544-
return sql.ErrForeignKeyChildViolationMySQL845.New(reference.ForeignKey.Database, reference.ForeignKey.Table,
544+
return sql.ErrForeignKeyChildViolation.New(reference.ForeignKey.Database, reference.ForeignKey.Table,
545545
reference.ForeignKey.Name, strings.Join(reference.ForeignKey.Columns, ", "),
546546
reference.ForeignKey.ParentTable, strings.Join(reference.ForeignKey.ParentColumns, ", "))
547547
}

0 commit comments

Comments
 (0)