diff --git a/mysql/errcode.go b/mysql/errcode.go index 34478aaa7..22b1baf74 100644 --- a/mysql/errcode.go +++ b/mysql/errcode.go @@ -922,6 +922,7 @@ const ( ErrWindowNoGroupOrderUnused = 3597 ErrWindowExplainJson = 3598 ErrWindowFunctionIgnoresFrame = 3599 + ErrFKIncompatibleColumns = 3780 // MariaDB errors. ErrOnlyOneDefaultPartionAllowed = 4030 diff --git a/mysql/errname.go b/mysql/errname.go index a933e075a..bbff59276 100644 --- a/mysql/errname.go +++ b/mysql/errname.go @@ -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",