-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
sysvars: error code package for sysvar.go #13366
Conversation
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
ErrMaxPreparedStmtCountReached = terror.ClassVariable.New(CodeMaxPreparedStmtCountReached, mysql.MySQLErrName[mysql.ErrMaxPreparedStmtCountReached]) | ||
ErrUnsupportedValueForVar = terror.ClassVariable.New(CodeUnknownStatusVar, "variable '%s' does not yet support value: %s") | ||
ErrUnsupportedIsolationLevel = terror.ClassVariable.New(CodeUnknownStatusVar, "The isolation level '%s' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error") | ||
ErrUnsupportedValueForVar = terror.ClassVariable.New(mysql.ErrUnsupportedValueForVar, mysql.MySQLErrName[mysql.ErrUnsupportedValueForVar]) |
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.
Please add some test cases for the code of these errors.
Codecov Report
@@ Coverage Diff @@
## master #13366 +/- ##
===========================================
Coverage 80.1903% 80.1903%
===========================================
Files 469 469
Lines 112612 112612
===========================================
Hits 90304 90304
Misses 15311 15311
Partials 6997 6997 |
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
/run-all-tests |
@cfzjywxk merge failed. |
/merge |
Your auto merge job has been accepted, waiting for 12793 |
/run-all-tests |
What problem does this PR solve?
Not all the errors in this file have error code. the error code added in parser is link
What is changed and how it works?
Add the missing ones and do some tiny refactorations
Check List
Tests
Code changes
Side effects
Related changes
Release note