-
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
time: fix parse datetime won't truncate the reluctant string #22232
Conversation
Signed-off-by: AilinKid <314806019@qq.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
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
Signed-off-by: AilinKid <314806019@qq.com>
/run-all-tests |
/run-all-tests tidb-test=pr/1150 |
/run-all-tests tidb-test=pr/1150 |
PTAL @wshwsh12 |
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 tidb-test=pr/1150 |
/run-unit-test tidb-test=pr/1150 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-3.1 failed |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Signed-off-by: AilinKid 314806019@qq.com
What problem does this PR solve?
Issue Number: close #22231
What is changed and how it works?
What's Changed:
parse the entire string into
seps
, then, when it bigger than 6, truncate the valid ones into a time and append a warning.Related changes
Check List
Tests
Release note