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

fix ConvertJSONToInt unsigned bug (#11483) #13036

Merged
merged 2 commits into from
Oct 30, 2019

Conversation

H-ZeX
Copy link
Contributor

@H-ZeX H-ZeX commented Oct 30, 2019

cherry-pick #11483 to release 2.1


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

What problem does this PR solve?

The origin ConvertJSONToInt will fail in this sql select convert(a2.a, unsigned int) from (select cast('"9223372036854775808"' as json) as a) as a2;

What is changed and how it works?

call StrToInt or StrToUint according to the param unsigned.

Check List

Tests

  • Unit test
  • Integration test

Code changes

No

Side effects

No.

Related changes

No.

Signed-off-by: H-ZeX <hzx20112012@gmail.com>
@Deardrops
Copy link
Contributor

LGTM

1 similar comment
@wjhuang2016
Copy link
Member

LGTM

Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

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

LGTM,any conflict file should be annotated in description?

@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 Oct 30, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 30, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Oct 30, 2019

@H-ZeX merge failed.

@zz-jason
Copy link
Member

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Oct 30, 2019

Your auto merge job has been accepted, waiting for 13039, 13031, 12960, 12962, 12900, 12901, 12902, 12708, 12707, 12761, 12745, 12975

@bb7133
Copy link
Member

bb7133 commented Oct 30, 2019

/run-unit-test

@sre-bot
Copy link
Contributor

sre-bot commented Oct 30, 2019

/run-all-tests

@sre-bot sre-bot merged commit d145386 into pingcap:release-2.1 Oct 30, 2019
@H-ZeX H-ZeX deleted the pick-pr-11483 branch October 30, 2019 14:48
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.

7 participants