Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
planner/core: raise 'No database selected' error for grant statement #13745
What problem does this PR solve?
What is changed and how it works?
If no database is selected, grant privilege to table should raise an error.
@@ Coverage Diff @@ ## master #13745 +/- ## =========================================== Coverage 80.2474% 80.2474% =========================================== Files 474 474 Lines 117048 117048 =========================================== Hits 93928 93928 Misses 15758 15758 Partials 7362 7362
tiancaiamao merged commit
Nov 27, 2019
14 checks passed
14 checks passed
idc-jenkins-ci-tidb/build Jenkins job succeeded.Details
idc-jenkins-ci-tidb/build_check_race Jenkins job succeeded.Details
idc-jenkins-ci-tidb/check_dev Jenkins job succeeded.Details
idc-jenkins-ci-tidb/check_dev_2 Jenkins job succeeded.Details
idc-jenkins-ci-tidb/common-test job succeededDetails
idc-jenkins-ci-tidb/integration-common-test Jenkins job succeeded.Details
idc-jenkins-ci-tidb/integration-compatibility-test Jenkins job succeeded.Details
idc-jenkins-ci-tidb/integration-copr-test Jenkins job succeeded.Details
idc-jenkins-ci-tidb/integration-ddl-test Jenkins job succeeded.Details
idc-jenkins-ci-tidb/mybatis-test job succeededDetails
idc-jenkins-ci-tidb/sqllogic-test-1 Jenkins job succeeded.Details
idc-jenkins-ci-tidb/sqllogic-test-2 Jenkins job succeeded.Details
idc-jenkins-ci-tidb/unit-test Jenkins job succeeded.Details
license/cla Contributor License Agreement is signed.Details
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.