-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
types: fix a bug of FromGoTime
when handling rounding
#12240
Conversation
FromGoTime("2019-09-11 11:17:47.999999666") should round to {2019 9 11 11 17 48 0} But get {2019 9 11 11 17 47 1000000}
PTAL @crazycs520 @jackysp @lysu |
Codecov Report
@@ Coverage Diff @@
## master #12240 +/- ##
===========================================
Coverage 81.2985% 81.2985%
===========================================
Files 454 454
Lines 100008 100008
===========================================
Hits 81305 81305
Misses 12873 12873
Partials 5830 5830 |
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.
LGTM
/run-all-tests |
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
cherry pick to release-2.1 failed |
types: fix a bug of `FromGoTime` when handling rounding (pingcap#12240)
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1 release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @tiancaiamao PTAL. |
What problem does this PR solve?
Fix #12163
FromGoTime("2019-09-11 11:17:47.999999666") should be round to
But the old code get
That cause the bug in issues/12163
What is changed and how it works?
Fix the
FromGoTime
functionCheck List
Tests
Related changes
Release note