diff --git a/mysql/errcode.go b/mysql/errcode.go index 0216f9abe..7a34909de 100644 --- a/mysql/errcode.go +++ b/mysql/errcode.go @@ -883,6 +883,7 @@ const ( ErrRowInWrongPartition = 1863 ErrErrorLast = 1863 ErrMaxExecTimeExceeded = 1907 + ErrInvalidFieldSize = 3013 ErrInvalidJSONData = 3069 ErrGeneratedColumnFunctionIsNotAllowed = 3102 ErrBadGeneratedColumn = 3105 diff --git a/mysql/errname.go b/mysql/errname.go index 818fdb468..847f2ff51 100644 --- a/mysql/errname.go +++ b/mysql/errname.go @@ -885,6 +885,7 @@ var MySQLErrName = map[uint16]string{ ErrDependentByGeneratedColumn: "Column '%s' has a generated column dependency.", ErrGeneratedColumnFunctionIsNotAllowed: "Expression of generated column '%s' contains a disallowed function.", ErrGeneratedColumnRefAutoInc: "Generated column '%s' cannot refer to auto-increment column.", + ErrInvalidFieldSize: "Invalid size for column '%s'.", ErrInvalidJSONData: "Invalid JSON data provided to function %s: %s", ErrInvalidJSONText: "Invalid JSON text: %-.192s", ErrInvalidJSONPath: "Invalid JSON path expression %s.",