Skip to content

Commit cbdc207

Browse files
author
imtbkcat
committed
add errcode for set role
1 parent fccf4bd commit cbdc207

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mysql/errcode.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ const (
894894
ErrInvalidJSONPathWildcard = 3149
895895
ErrInvalidJSONContainsPathType = 3150
896896
ErrJSONUsedAsKey = 3152
897+
ErrRoleNotGranted = 3530
897898
ErrWindowNoSuchWindow = 3579
898899
ErrWindowCircularityInWindowGraph = 3580
899900
ErrWindowNoChildPartitioning = 3581

mysql/errname.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ var MySQLErrName = map[uint16]string{
912912
ErrWindowNoGroupOrderUnused: "ASC or DESC with GROUP BY isn't allowed with window functions; put ASC or DESC in ORDER BY",
913913
ErrWindowExplainJson: "To get information about window functions use EXPLAIN FORMAT=JSON",
914914
ErrWindowFunctionIgnoresFrame: "Window function '%s' ignores the frame clause of window '%s' and aggregates over the whole partition",
915+
ErrRoleNotGranted: "%s is is not granted to %s",
915916

916917
// TiDB errors.
917918
ErrMemExceedThreshold: "%s holds %dB memory, exceeds threshold %dB.%s",

0 commit comments

Comments
 (0)