-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: make 'grant all privileges' work right (#400) #686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mysql/const.go
Outdated
@@ -422,6 +441,9 @@ var SetStr2Priv = map[string]PrivilegeType{ | |||
"Show View": ShowViewPriv, | |||
} | |||
|
|||
// AllGlobalPrivs is all the privileges in global scope. | |||
var AllGlobalPrivs = []PrivilegeType{SelectPriv, InsertPriv, UpdatePriv, DeletePriv, CreatePriv, DropPriv, ProcessPriv, GrantPriv, ReferencesPriv, AlterPriv, ShowDBPriv, SuperPriv, ExecutePriv, IndexPriv, CreateUserPriv, TriggerPriv, CreateViewPriv, ShowViewPriv, CreateRolePriv, DropRolePriv, CreateTMPTablePriv, LockTablesPriv, CreateRoutinePriv, AlterRoutinePriv, EventPriv} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GrantPriv
has been removed from AllGlobalPrivs
, see #665 for detail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Codecov Report
@@ Coverage Diff @@
## release-3.0 #686 +/- ##
=============================================
Coverage ? 64.6%
=============================================
Files ? 31
Lines ? 10870
Branches ? 0
=============================================
Hits ? 7023
Misses ? 3438
Partials ? 409
Continue to review full report at Codecov.
|
test tidb with pingcap/tidb#14092 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cherry-pick #400 to 3.0 which block other cherry-picks
This change is