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 |
6b4cbbe to
364b912
Compare
lzmhhh123
left a comment
There was a problem hiding this comment.
@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. |
lzmhhh123
left a comment
There was a problem hiding this comment.
@tcmichael Nice job! LGTM.
|
@SunRunAway Please take a look. If ok, disable the change requested. |
|
/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