-
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
types: fix fsp for datetime, time and timestamp #27170
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. |
It looks like this test is related:
|
Yeah, I am thinking about whether set the decimal to 0 or just change the result. |
/run-check_dev_2 |
types/datum.go
Outdated
@@ -1122,7 +1122,7 @@ func (d *Datum) convertToMysqlTimestamp(sc *stmtctx.StatementContext, target *Fi | |||
t Time | |||
err error | |||
) | |||
fsp := DefaultFsp | |||
fsp := MaxFsp |
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 change will cause some automated-test/mysql-test fail, be cautious with that since no CI tests for now
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.
Rest LGTM
Why do you write integration tests in the |
Let's forget its name. We should take it as mysql_test |
/run-common-test |
1 similar comment
/run-common-test |
I can't forget its name :) |
Signed-off-by: wjhuang2016 <[email protected]>
db516a8
to
d4a98d5
Compare
/run-common-test |
It's suggested by @zz-jason that we should add the tests into |
/run-common-test |
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 |
This pull request has been accepted and is ready to merge. Commit hash: bd42281
|
/run-all-tests |
1 similar comment
/run-all-tests |
/run-build |
/run-check_dev_2 |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.2 in PR #27243 |
Signed-off-by: wjhuang2016 [email protected]
What problem does this PR solve?
Issue Number: close #27159
Problem Summary:
If the decimal is unspecified, we should use the maxFsp, which is compatible with what we do for function.
What is changed and how it works?
If the decimal is unspecified, we should use the maxFsp, which is compatible with what we do for function.
Check List
Tests
Side effects
Documentation
Release note