-
Notifications
You must be signed in to change notification settings - Fork 490
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
add error code from planner, expression and executor #650
Conversation
Codecov Report
@@ Coverage Diff @@
## master #650 +/- ##
=========================================
- Coverage 80.01% 80% -0.02%
=========================================
Files 32 32
Lines 12703 12696 -7
=========================================
- Hits 10164 10157 -7
Misses 1935 1935
Partials 604 604
Continue to review full report at Codecov.
|
mysql/errcode.go
Outdated
ErrColumnStateCantNone = 8046 | ||
ErrUnsupportedValueForVar = 8047 | ||
ErrUnsupportedIsolationLevel = 8048 | ||
ErrUnsupportedType = 8049 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to start from 8100 to avoid some conflicts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jackysp but it seems starting from 8100 has already been taken
ErrInvalidPluginID = 8101
ErrInvalidPluginManifest = 8102
ErrInvalidPluginName = 8103
ErrInvalidPluginVersion = 8104
ErrDuplicatePlugin = 8105
ErrInvalidPluginSysVarName = 8106
ErrRequireVersionCheckFail = 8107
So do we want to start from 8108 or 8200?
Co-Authored-By: Tanner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
Associating internal error code for planner/core/errors.go, expression/errors.go and executor/errors.go to parser/mysql/errcode.go.
What is changed and how it works?
Adding more error code and set up the mapping.
Check List
Tests
Code changes
Side effects
Related changes