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) #11712

Merged
merged 5 commits into from
Aug 13, 2019

Conversation

H-ZeX
Copy link
Contributor

@H-ZeX H-ZeX commented Aug 12, 2019

cherry-pick #11640 to release-2.1


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:59
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
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

@XuHuaiyu XuHuaiyu changed the title expression: remove unnecessary convertIntToUint. fix error in err msg(should be bigint but not double) #11640 expression: remove unnecessary convertIntToUint. fix error in err msg(should be bigint but not double)(#11640) Aug 12, 2019
@lonng
Copy link
Contributor

lonng commented Aug 13, 2019

LGTM

@H-ZeX H-ZeX added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 13, 2019
@ngaut ngaut added the status/can-merge Indicates a PR has been approved by a committer. label Aug 13, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Aug 13, 2019

/run-all-tests

@zz-jason zz-jason merged commit 8ccd648 into pingcap:release-2.1 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.

6 participants