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

sessionctx: fix a bug where update stmt not considered when clipping negative num to 0 #19605

Merged
merged 5 commits into from
Sep 3, 2020

Conversation

time-and-fate
Copy link
Member

What problem does this PR solve?

Issue Number: close #13150

Problem Summary:
Update stmt is not considered in ShouldClipToZero(), which would cause the check is bypassed when trying to set an unsigned field to a negative number.

Check List

Tests

  • Unit test

Release note

  • no release note

@time-and-fate time-and-fate requested a review from a team as a code owner August 31, 2020 03:58
@time-and-fate time-and-fate requested review from XuHuaiyu and removed request for a team August 31, 2020 03:58
@github-actions github-actions bot added the sig/execution SIG execution label Aug 31, 2020
@time-and-fate
Copy link
Member Author

/label type/bug-fix,needs-cherry-pick-3.0,needs-cherry-pick-4.0,needs-cherry-pick-3.1

@time-and-fate
Copy link
Member Author

/run-check_dev

1 similar comment
@time-and-fate
Copy link
Member Author

/run-check_dev

@time-and-fate
Copy link
Member Author

@XuHuaiyu PTAL~

@time-and-fate
Copy link
Member Author

time-and-fate commented Sep 3, 2020

/cc @qw4990

Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
@qw4990
Copy link
Contributor

qw4990 commented Sep 3, 2020

/run-all-tests

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Sep 3, 2020
@SunRunAway
Copy link
Contributor

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 3, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Sep 3, 2020

/run-integration-ddl-test
/run-sqllogic-test-1

@ti-srebot
Copy link
Contributor

@time-and-fate merge failed.

@time-and-fate
Copy link
Member Author

/run-unit-test

@qw4990 qw4990 merged commit fdcc19e into pingcap:master Sep 3, 2020
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Sep 3, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-3.0 in PR #19772

@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #19773

ti-srebot added a commit that referenced this pull request Sep 5, 2020
ti-srebot added a commit that referenced this pull request Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql_mode STRICT_ALL_TABLES does not work properly
5 participants