Skip to content

executor: fix inconsistent of grants privileges with MySQL when executing grant all on ...#12330

Merged
imtbkcat merged 31 commits intopingcap:masterfrom
tsthght:pri
Oct 23, 2019
Merged

executor: fix inconsistent of grants privileges with MySQL when executing grant all on ...#12330
imtbkcat merged 31 commits intopingcap:masterfrom
tsthght:pri

Conversation

@tsthght
Copy link
Contributor

@tsthght tsthght commented Sep 24, 2019

What problem does this PR solve?

1 fix bug for #12324
2 fix bug for execute SQL show grants for xxx

What is changed and how it works?

create user "ght1";
grant all on . to 'ght1'@'%' identified by 'Poiuy123';
select * from mysql.user where user='ght1'\G
*************************** 1. row ***************************
Grant_priv: N

Check List

Tests

  • Unit test

@sre-bot sre-bot added the contribution This PR is from a community contributor. label Sep 24, 2019
@tsthght tsthght changed the title fix bug #12324 executor: fix inconsistent of grants privileges with MySQL when executing grant all on ... Sep 24, 2019
@imtbkcat
Copy link

@tsthght Please fix test below:

privileges_test.go:265
privileges_test.go:504
privileges_test.go:694

And add some test to test GRANT ALL and GRANT ... WITH GRANT OPTION

@codecov
Copy link

codecov bot commented Sep 24, 2019

Codecov Report

Merging #12330 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12330   +/-   ##
===========================================
  Coverage   80.0356%   80.0356%           
===========================================
  Files           465        465           
  Lines        107136     107136           
===========================================
  Hits          85747      85747           
  Misses        14951      14951           
  Partials       6438       6438

@tsthght
Copy link
Contributor Author

tsthght commented Sep 24, 2019

/rebuild

@imtbkcat
Copy link

/run-unit-test

@tiancaiamao
Copy link
Contributor

Any update? @tsthght

@tsthght
Copy link
Contributor Author

tsthght commented Oct 16, 2019

Any update? @tsthght

It will be updated today.

@tiancaiamao
Copy link
Contributor

You can use go mod edit github.com/pingcap/parser=github.com/tsthght/parser@pri to use the right parser version. @tsthght

@tsthght
Copy link
Contributor Author

tsthght commented Oct 17, 2019

You can use go mod edit github.com/pingcap/parser=github.com/tsthght/parser@pri to use the right parser version. @tsthght

Great! Thank you, I will try it~

@tiancaiamao
Copy link
Contributor

/run-all-tests

@tiancaiamao
Copy link
Contributor

/run-all-tests

@imtbkcat
Copy link

/run-integration-common-test tidb-test=pr/926

@imtbkcat
Copy link

/run-all-tests tidb-test=pr/926

@tsthght
Copy link
Contributor Author

tsthght commented Oct 22, 2019

/run-all-tests

@imtbkcat
Copy link

/run-all-tests tidb-test=pr/926

@imtbkcat
Copy link

I will approve after test merge, wait a moment.

@tiancaiamao
Copy link
Contributor

LGTM

@zz-jason zz-jason requested a review from imtbkcat October 23, 2019 03:20
@imtbkcat
Copy link

/run-all-tests tidb-test=pr/926

Copy link

@imtbkcat imtbkcat left a comment

Choose a reason for hiding this comment

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

LGTM

@imtbkcat imtbkcat merged commit 9a074ca into pingcap:master Oct 23, 2019
lfkdsk added a commit to JustProject/tidb that referenced this pull request Oct 26, 2019
…ect/tidb into feature-add-udf-support

* 'feature-add-udf-support' of https://github.com/JustProject/tidb: (26 commits)
  *: fix bug that the kill command doesn't work when the killed session is waiting for the pessimistic lock (pingcap#12852)
  executor: fix the projection upon the indexLookUp in indexLookUpJoin can't get result. (pingcap#12889)
  planner, executor: support create view on union (pingcap#12595)
  planner/cascades: introduce TransformationID in cascades planner (pingcap#12879)
  executor: fix data race in test (pingcap#12910)
  executor: reuse chunk row for insert on duplicate update (pingcap#12847)
  ddl: speed up tests (pingcap#12888)
  executor: speed up test (pingcap#12896)
  expression: implement vectorized evaluation for `builtinSecondSig` (pingcap#12886)
  expression: implement vectorized evaluation for `builtinJSONObjectSig` (pingcap#12663)
  expression: speed up builtinRepeatSig by using MergeNulls (pingcap#12674)
  expression: speed up unit tests under the expression package (pingcap#12887)
  store,kv: snapshot doesn't cache the non-exists kv entries lead to poor 'insert ignore' performance (pingcap#12872)
  executor: fix data race in `GetDirtyTable()` (pingcap#12767)
  domain: increase TTL to reduce the occurrence of reporting min startTS errors (pingcap#12578)
  executor: split test for speed up (pingcap#12881)
  executor: fix inconsistent of grants privileges with MySQL when executing `grant all on ...` (pingcap#12330)
  expression: implement vectorized evaluation for `builtinJSONUnquoteSig` (pingcap#12841)
  tune grpc connection count between tidb and tikv (pingcap#12884)
  Makefile: change test parallel to 8 (pingcap#12885)
  ...
imtbkcat pushed a commit to imtbkcat/tidb that referenced this pull request Dec 9, 2019
sre-bot pushed a commit that referenced this pull request Dec 9, 2019
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/privilege contribution This PR is from a community contributor. status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants