-
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
types: fix ambiguous year conversion #19781
Conversation
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
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
/merge |
/run-all-tests |
@xhebox merge failed. |
@ti-srebot /run-sqllogic-test-2 |
/run-sqllogic-test-2 |
/merge |
/run-all-tests |
/run-integration-ddl-test |
@xhebox merge failed. |
/run-all-tests |
@ti-srebot /run-common-test |
/run-common-test |
@ti-srebot /run-common-test |
/run-common-test |
@ti-srebot /run-all-tests |
/run-all-tests |
2 similar comments
/run-all-tests |
/run-all-tests |
@ti-srebot /run-integration-common-test |
/run-integration-common-test |
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #20292 |
What problem does this PR solve?
Problem Summary: In the seek of #13094, I found some other bugs related to year type conversion. After some digging with mariadb(8.xx), I found the condition of string to "0" or "2000". And I add more tests tested under mariadb. Type is kinda fundamental. I think it is better to back port the patch.
For the reference, 5.7 of ambiguous year conversion documentation here.
Related changes
Check List
Tests
Release note