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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 actual check of --error command not just that an error exists #52
Add actual check of --error command not just that an error exists #52
Changes from all commits
50cd967
503d997
d6aaba0
9f216d9
9b48712
f765db4
a9d9a88
c493931
bec7b97
6a94e90
12fc198
27f93fa
6dd3181
6d4fae9
80e0743
2e026ea
dd155fd
260499d
555cefe
8373650
85f2af2
606e03a
7e1d9e1
2cf23e5
4d06c73
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does this mean we need to rely on 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.
Yes, in the same way as it relies on
perror
(a binary from the mysql distribution, to map error numbers to error code names).If TiDB would have a similar program/binary/utility, to map error codes to names, we could use that instead of reading the source code.
But since we are generating the perror.go file, with the mapping, and that is checked into the mysql-tester repository, it only depends on
perror
andtidb
repository when it needs to be updated. So it does not have any direct dependencies, only needs the dependencies when new error codes needs to be added.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.
Got it.
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.
Why this SQL doesn't have any error message? Seems error no begin with
0
will ignore the error msg. Does it same as mysql?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.
Checked MySQL-Server, they are same.