-
Notifications
You must be signed in to change notification settings - Fork 411
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
Add unittests for str_to_date, fix #3556, #3557 #3581
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
{"10/1/2010", "%d/%c/%Y", MyDateTime{2010, 1, 10, 0, 0, 0, 0}}, | ||
{"10/01/2010", "%d/%c/%Y", MyDateTime{2010, 1, 10, 0, 0, 0, 0}}, | ||
{"10/001/2010", "%d/%c/%Y", std::nullopt}, | ||
{"10/13/2010", "%d/%c/%Y", std::nullopt}, |
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.
This may allow under sql_mode with ALLOW_INVALID_DATES
https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_allow_invalid_dates
TiDB: pingcap/tidb#8263
Should we open an issue for ALLOW_INVALID_DATES
in TiFlash?
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.
In mysql's ALLOW_INVALID_DATES
mode, this case also gets NULL.
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
This pull request has been accepted and is ready to merge. Commit hash: fbbf522
|
Coverage detail: https://ci-internal.pingcap.net/job/tics_ghpr_unit_test/363/cobertura/ lines: 42.3% (46937 out of 110981) |
Coverage detail: https://ci-internal.pingcap.net/job/tics_ghpr_unit_test/368/cobertura/ lines: 42.3% (46953 out of 111001) |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3933. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3934. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3935. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3936. |
Coverage detail: https://ci-internal.pingcap.net/job/tics_ghpr_unit_test/1262/cobertura/ lines: 42.3% (46956 out of 111001) |
What problem does this PR solve?
Issue Number: close #3557
close #3556
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note