diff --git a/mysql/errcode.go b/mysql/errcode.go index 3d4ee0d4b..cef7b6127 100644 --- a/mysql/errcode.go +++ b/mysql/errcode.go @@ -894,6 +894,7 @@ const ( ErrInvalidJSONPathWildcard = 3149 ErrInvalidJSONContainsPathType = 3150 ErrJSONUsedAsKey = 3152 + ErrRoleNotGranted = 3530 ErrWindowNoSuchWindow = 3579 ErrWindowCircularityInWindowGraph = 3580 ErrWindowNoChildPartitioning = 3581 diff --git a/mysql/errname.go b/mysql/errname.go index 469aa5058..ac762a7ae 100644 --- a/mysql/errname.go +++ b/mysql/errname.go @@ -912,6 +912,7 @@ var MySQLErrName = map[uint16]string{ ErrWindowNoGroupOrderUnused: "ASC or DESC with GROUP BY isn't allowed with window functions; put ASC or DESC in ORDER BY", ErrWindowExplainJson: "To get information about window functions use EXPLAIN FORMAT=JSON", ErrWindowFunctionIgnoresFrame: "Window function '%s' ignores the frame clause of window '%s' and aggregates over the whole partition", + ErrRoleNotGranted: "%s is is not granted to %s", // TiDB errors. ErrMemExceedThreshold: "%s holds %dB memory, exceeds threshold %dB.%s",