Skip to content

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

Merged
lysu merged 2 commits into
pingcap:release-3.0from
lysu:dev-cp30-shutdown
Dec 17, 2019
Merged

*: make 'grant all privileges' work right (#400)#686
lysu merged 2 commits into
pingcap:release-3.0from
lysu:dev-cp30-shutdown

Conversation

@lysu
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread mysql/const.go Outdated
}

// 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}
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Collaborator Author

lysu commented Dec 17, 2019

test tidb with pingcap/tidb#14092

Copy link
Copy Markdown
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