Skip to content

Commit

Permalink
mysql: add foreign key error (#675) (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycs520 authored and kennytm committed Dec 19, 2019
1 parent 56b91da commit 7df8c2c
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 @@ -922,6 +922,7 @@ const (
ErrWindowNoGroupOrderUnused = 3597
ErrWindowExplainJson = 3598
ErrWindowFunctionIgnoresFrame = 3599
ErrFKIncompatibleColumns = 3780

// MariaDB errors.
ErrOnlyOneDefaultPartionAllowed = 4030
Expand Down
1 change: 1 addition & 0 deletions mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ var MySQLErrName = map[uint16]string{
ErrRoleNotGranted: "%s is is not granted to %s",
ErrMaxExecTimeExceeded: "Query execution was interrupted, max_execution_time exceeded.",
ErrLockAcquireFailAndNoWaitSet: "Statement aborted because lock(s) could not be acquired immediately and NOWAIT is set.",
ErrFKIncompatibleColumns: "Referencing column '%s' in foreign key constraint '%s' are incompatible",

// MariaDB errors.
ErrOnlyOneDefaultPartionAllowed: "Only one DEFAULT partition allowed",
Expand Down

0 comments on commit 7df8c2c

Please sign in to comment.