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

*: refine some error code #14002

Merged
merged 8 commits into from Dec 12, 2019
Merged

*: refine some error code #14002

merged 8 commits into from Dec 12, 2019

Conversation

tiancaiamao
Copy link
Contributor

What problem does this PR solve?

Make the error code explicable when it's returned to MySQL client.

What is changed and how it works?

Define some customized mysql.ErrCode in the parser and use them for the following packages:

  • server
  • meta/autoid
  • sessionctx/variable
  • privilege/privileges

Check List

Tests

  • No code

Define some customized mysql.ErrCode in the parser and use them for the following packages:
* server
* meta/autoid
* sessionctx/variable
* privilege/privileges
@codecov
Copy link

codecov bot commented Dec 10, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #14002   +/-   ##
===========================================
  Coverage   80.2959%   80.2959%           
===========================================
  Files           482        482           
  Lines        121361     121361           
===========================================
  Hits          97448      97448           
  Misses        16187      16187           
  Partials       7726       7726

@tiancaiamao
Copy link
Contributor Author

PTAL @jackysp @imtbkcat

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp jackysp added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 11, 2019
Deardrops
Deardrops previously approved these changes Dec 11, 2019
Copy link
Contributor

@Deardrops Deardrops left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member

jackysp commented Dec 11, 2019

Please resolve the conflicts, @tiancaiamao .

@tiancaiamao
Copy link
Contributor Author

Done @jackysp

@jackysp
Copy link
Member

jackysp commented Dec 12, 2019

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 12, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 12, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Dec 12, 2019

@tiancaiamao merge failed.

@tiancaiamao
Copy link
Contributor Author

/run-unit-test

@jackysp
Copy link
Member

jackysp commented Dec 12, 2019

The test failed, @tiancaiamao .

@jackysp
Copy link
Member

jackysp commented Dec 12, 2019

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Dec 12, 2019

Your auto merge job has been accepted, waiting for 14032

@sre-bot
Copy link
Contributor

sre-bot commented Dec 12, 2019

/run-all-tests

@sre-bot sre-bot merged commit 5da10ff into pingcap:master Dec 12, 2019
@tiancaiamao tiancaiamao deleted the refine-errcode branch December 12, 2019 03:19
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/parser status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants