-
Notifications
You must be signed in to change notification settings - Fork 39
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
remove duplicate error code check and add some public method #22
base: master
Are you sure you want to change the base?
Conversation
terror_registry.go
Outdated
// CodeExecResultIsEmpty indicates execution result is empty. | ||
CodeExecResultIsEmpty ErrCode = 3 | ||
|
||
// Expression error codes. | ||
|
||
// CodeMissConnectionID indicates connection id is missing. | ||
CodeMissConnectionID ErrCode = 1 | ||
|
||
// Special error codes. | ||
|
||
// CodeResultUndetermined indicates the sql execution result is undetermined. | ||
CodeResultUndetermined ErrCode = 2 |
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 do not add TiDB specific error to this lib. How about defining these code in TiDB?
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.
has been moved to TiDB, PTAL
LGTM |
PTAL @overvenus |
Actually, it looks wired to import log related dependencies in common error repo. |
TiDB use same error code to represent a class of code, like
8200
contain a series of error related to unsupported ddl. When using this terror lib, TiDB will panic. So, I remove this check.