-
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
executor: make NO_ZERO_IN_DATE affect the default values #26828
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. |
// Test create table with invalid datetime(02-30) as a default value. | ||
tk.MustExec("set @@sql_mode='STRICT_TRANS_TABLES';") |
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.
Could we remove this line? We set it in https://github.com/pingcap/tidb/pull/26828/files#diff-ff7af5dbd454cd98c804a32d8049cd73e476ad819042c63dbe690502f915afeeR7791
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.
I prefer to keep this because it is a part of a complete test block for invalid dates like 2999-02-30
.
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
/merge |
@AilinKid: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/merge |
@tangenta: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 27cdc1a
|
/run-unit-tests |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #26902 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0 in PR #26903 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.1 in PR #26904 |
What problem does this PR solve?
Issue Number: close #26766, introduce by #24174
Problem Summary: If the SQL mode
NO_ZERO_DATE
not exists,StmtContext.IgnoreZeroInDate
should not betrue
.What is changed and how it works?
NA
Check List
Tests
Side effects
Documentation
Release note