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

expression: remove unnecessary convertIntToUint. fix error in err msg(should be bigint but not double) (#11640) #11707

Merged
merged 4 commits into from
Aug 13, 2019

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Aug 12, 2019

cherry-pick #11640 to release-3.0


Signed-off-by: H-ZeX hzx20112012@gmail.com

What problem does this PR solve?

In some of the code, we get a uint from the row which is stored in int, however, we needn't casting it from int to uint when it is uint, this will make some bugs.

In the origin builtinCastStringAsDecimalSig::evalDecimal, the res is always not neg, this is a bug.

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test

Code changes

NO.

Side effects

NO.

Related changes

  • Need to cherry-pick to the release branch
  • Need to be included in the release note

H-ZeX added 3 commits August 12, 2019 11:19
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
@sre-bot
Copy link
Contributor Author

sre-bot commented Aug 12, 2019

/run-all-tests

@lonng
Copy link
Contributor

lonng commented Aug 12, 2019

LGTM

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@qw4990 qw4990 removed their request for review August 12, 2019 07:05
@zz-jason zz-jason added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Aug 13, 2019
@sre-bot
Copy link
Contributor Author

sre-bot commented Aug 13, 2019

/run-all-tests

@sre-bot sre-bot merged commit ae8d2f2 into pingcap:release-3.0 Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression 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.

5 participants