-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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 error in ConvertJSONToInt error msg #11493
fix error in ConvertJSONToInt error msg #11493
Conversation
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #11493 +/- ##
================================================
- Coverage 81.3808% 81.3612% -0.0196%
================================================
Files 424 424
Lines 90917 90902 -15
================================================
- Hits 73989 73959 -30
- Misses 11609 11626 +17
+ Partials 5319 5317 -2 |
Codecov Report
@@ Coverage Diff @@
## master #11493 +/- ##
===========================================
Coverage 81.3489% 81.3489%
===========================================
Files 425 425
Lines 91389 91389
===========================================
Hits 74344 74344
Misses 11713 11713
Partials 5332 5332 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@H-ZeX Could you please add some tests to cover this situation?
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/run-all-tests |
cherry pick to release-3.0 in PR #11534 |
cherry pick to release-2.1 failed |
Signed-off-by: H-ZeX hzx20112012@gmail.com
What problem does this PR solve?
The origin version will call overflow with
mysql.TypeDouble
when json of type float convert to int overflow i64::MAX, however, it is overflow i64::MAX but not f64::MAX.What is changed and how it works?
replace
mysql.TypeDouble
withmysql.TypeLonglong
.Check List
Code changes
No.
Side effects
No.
Related changes
No.