From cbdc2077480734081bde6121f7f84602bbe4c987 Mon Sep 17 00:00:00 2001 From: imtbkcat Date: Wed, 6 Mar 2019 12:43:09 +0800 Subject: [PATCH] add errcode for set role --- mysql/errcode.go | 1 + mysql/errname.go | 1 + 2 files changed, 2 insertions(+) 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",