Skip to content
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

executor: fix overflow error message of update #8457

Merged
merged 2 commits into from
Nov 27, 2018

Conversation

exialin
Copy link
Contributor

@exialin exialin commented Nov 26, 2018

What problem does this PR solve?

Fix #8119 to make TiDB consistent with MySQL when updated value overflows.

However, the row number showed by the error message is trivial, as discussed in that issue.

What is changed and how it works?

Check error type in handleErr.

Check List

Tests

  • Unit test

This change is Reviewable

@sre-bot
Copy link
Contributor

sre-bot commented Nov 26, 2018

Hi contributor, thanks for your PR.

This patch needs to be approved by someone of admins. They should reply with "/ok-to-test" to accept this PR for running test automatically.

@CLAassistant
Copy link

CLAassistant commented Nov 26, 2018

CLA assistant check
All committers have signed the CLA.

@XuHuaiyu
Copy link
Contributor

@exialin Thanks for your contribution.
LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@XuHuaiyu
Copy link
Contributor

/run-all-tests

@zz-jason
Copy link
Member

@XuHuaiyu PTAL

@XuHuaiyu XuHuaiyu added type/compatibility contribution This PR is from a community contributor. labels Nov 26, 2018
@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. sig/execution SIG execution labels Nov 26, 2018
@zhouqiang-cl
Copy link
Contributor

/run-all-tests

@zz-jason zz-jason merged commit 0d005a0 into pingcap:master Nov 27, 2018
@zz-jason
Copy link
Member

@exialin could you please cherry-pick this commit to the release-2.1 and release-2.0 branch?

@exialin
Copy link
Contributor Author

exialin commented Nov 27, 2018

@zz-jason Sure. But release-2.0 does not have update.go, should I still apply the change to this branch?

@exialin
Copy link
Contributor Author

exialin commented Nov 28, 2018

@zz-jason If we want to apply this fix to release-2.0, something of #8045 needs to be picked too. So maybe it would be better to leave it as it is?

@zz-jason
Copy link
Member

@exialin OK

@exialin exialin deleted the fix-update-error-msg branch November 28, 2018 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor. sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2. type/compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants