-
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
Function SUBTIME ADDTIME should return NULL with a warning if its argument is an invalid time value. #11262
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11262 +/- ##
===========================================
Coverage 81.3855% 81.3855%
===========================================
Files 423 423
Lines 90607 90607
===========================================
Hits 73741 73741
Misses 11570 11570
Partials 5296 5296 |
@SunRunAway PTAL |
@SunRunAway PTAL |
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
6b4cbbe
to
364b912
Compare
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.
@tcmichael Should we also consider other types of builtin_time
like builtinSubStringAndDurationSig
?
efe6269
to
6b8f90f
Compare
… an invalid time value. (pingcap#11175)
@lzmhhh123 I tried to find out the functions of the same case, hoping that I found them all. |
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.
@tcmichael Nice job! LGTM.
@SunRunAway Please take a look. If ok, disable the change requested. |
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 |
/run-all-tests |
cherry pick to release-2.1 failed |
cherry pick to release-3.0 in PR #11337 |
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @SunRunAway PTAL. |
What problem does this PR solve?
Function SUBTIME ADDTIME should return NULL with a warning if its argument is an invalid time value.
Closes #11175
What is changed and how it works?
ignores ErrTruncatedWrongVal.
Check List
Tests