-
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
Fix variable formatting for ErrTruncateWrongValue #25
Conversation
@alapha23 Could you post the error message from MySQL in that case? |
@alapha23 maybe also take a PR in tidb repo and add a unit test for
to make CI green and make tidb's PR referenece this one test parser from tidb can use https://github.com/pingcap/parser/blob/master/README.md's method. |
@shenli @lysu As you might have seen from circleci that mysql system variable
I presume we are able to know the error message is decent or not by check ci of the tidb pr I mentioned above. What do you think? |
@lysu Thank you for suggesting the readme. I will take a careful look and follow the steps. |
@lysu PTAL |
@shenli I have checked |
@alapha23 let me take a look.. |
@lysu For example,
There are quite a few errors of this kind and you could refer to the whole output message in log.txt Thank you very much! |
@alapha23 hi, it seem pingcap/tidb#8227 CI passed what means |
@lysu For What do you think of the error message? |
LGTM |
@tiancaiamao @yu34po PTAL |
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
System variables of mysql could be 50 characters at most according to the document, which is
group_replication_flow_control_certifier_threshold
.Modify the
ErrTruncateWrongValue
so that system variable names will not be truncated in the error message.We could presume error message will not exceed mysql limits, as there are longer error messages as the official document suggests, e.g.
Please correct me if I misunderstood anything. Thank you in advance!