Skip to content
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

Merged
merged 2 commits into from
Dec 17, 2019
Merged

*: make 'grant all privileges' work right (#400) #686

merged 2 commits into from
Dec 17, 2019

Conversation

lysu
Copy link
Collaborator

@lysu lysu commented Dec 17, 2019

cherry-pick #400 to 3.0 which block other cherry-picks


This change is Reviewable

@lysu lysu requested review from imtbkcat and tiancaiamao and removed request for imtbkcat December 17, 2019 07:38
Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kennytm kennytm added the status/LGT1 LGT1 label Dec 17, 2019
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}

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@codecov
Copy link

codecov bot commented Dec 17, 2019

Codecov Report

❗ No coverage uploaded for pull request base (release-3.0@009d706). Click here to learn what that means.
The diff coverage is 38.46%.

Impacted file tree graph

@@              Coverage Diff              @@
##             release-3.0    #686   +/-   ##
=============================================
  Coverage               ?   64.6%           
=============================================
  Files                  ?      31           
  Lines                  ?   10870           
  Branches               ?       0           
=============================================
  Hits                   ?    7023           
  Misses                 ?    3438           
  Partials               ?     409
Impacted Files Coverage Δ
mysql/const.go 0% <ø> (ø)
ast/misc.go 18.24% <0%> (ø)
parser.go 86.93% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 009d706...2cf61ae. Read the comment docs.

@lysu
Copy link
Collaborator Author

lysu commented Dec 17, 2019

test tidb with pingcap/tidb#14092

Copy link
Contributor

@tangenta tangenta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lysu lysu merged commit 701d0da into pingcap:release-3.0 Dec 17, 2019
@lysu lysu deleted the dev-cp30-shutdown branch December 17, 2019 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants