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

*: change privilege type to uint64 and support REPLICATION CLIENT, etc #1121

Merged
merged 6 commits into from
Dec 22, 2020

Conversation

lance6716
Copy link
Contributor

@lance6716 lance6716 commented Dec 7, 2020

What problem does this PR solve?

close #1119

What is changed and how it works?

  • change PrivilegeType from uint32 to uint64
  • add constant and restore string for USAGE, REPLICATION CLIENT, REPLICATION SLAVE

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

@kennytm kennytm added the DNM label Dec 7, 2020
@lance6716 lance6716 removed the DNM label Dec 8, 2020
@lance6716 lance6716 changed the title [DNM] mysql: change privilege type to uint64 mysql: change privilege type to uint64 and support REPLICATION CLIENT, etc Dec 8, 2020
@lance6716 lance6716 requested a review from zier-one December 8, 2020 12:15
@lance6716 lance6716 changed the title mysql: change privilege type to uint64 and support REPLICATION CLIENT, etc *: change privilege type to uint64 and support REPLICATION CLIENT, etc Dec 8, 2020
@lance6716
Copy link
Contributor Author

PTAL @leoppro

@lance6716
Copy link
Contributor Author

PTAL @leoppro @wjhuang2016

Copy link
Member

@wjhuang2016 wjhuang2016 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 LGT1 label Dec 17, 2020
@lance6716
Copy link
Contributor Author

integration test failed, TiDB throws many error 🤔

@lance6716
Copy link
Contributor Author

need pingcap/tidb#21856

@lance6716
Copy link
Contributor Author

ping @leoppro

Copy link
Contributor

@xhebox xhebox left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 LGT1 label Dec 22, 2020
@ti-srebot ti-srebot added the status/LGT2 LGT2 label Dec 22, 2020
@xhebox
Copy link
Contributor

xhebox commented Dec 22, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

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.

parser gives privileges a exclusive bit or shared bit?
5 participants