Skip to content

Commit

Permalink
mysql: add foreign key error (#675) (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and djshow832 committed Dec 20, 2019
1 parent d32e257 commit 63cc130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mysql/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ const (
ErrInvalidJSONPathWildcard = 3149
ErrInvalidJSONContainsPathType = 3150
ErrJSONUsedAsKey = 3152
ErrFKIncompatibleColumns = 3780

// TiDB self-defined errors.
ErrMemExceedThreshold = 8001
Expand Down
1 change: 1 addition & 0 deletions mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ var MySQLErrName = map[uint16]string{
ErrInvalidJSONPathWildcard: "In this situation, path expressions may not contain the * and ** tokens.",
ErrInvalidJSONContainsPathType: "The second argument can only be either 'one' or 'all'.",
ErrJSONUsedAsKey: "JSON column '%-.192s' cannot be used in key specification.",
ErrFKIncompatibleColumns: "Referencing column '%s' in foreign key constraint '%s' are incompatible",

// TiDB errors.
ErrMemExceedThreshold: "%s holds %dB memory, exceeds threshold %dB.%s",
Expand Down

0 comments on commit 63cc130

Please sign in to comment.