-
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 converting decimal to datetime and timestamp #9899
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9899 +/- ##
================================================
+ Coverage 77.4516% 77.5273% +0.0757%
================================================
Files 404 404
Lines 81722 81726 +4
================================================
+ Hits 63295 63360 +65
+ Misses 13703 13660 -43
+ Partials 4724 4706 -18 |
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.
Thanks for your contribution.
Could you please add some unit tests in types/datum_test.go
and expression/integration_test.go
.
And besides This problem should have the same reason with |
Sure, i will fix that and cover test later. |
293c929
to
2529186
Compare
/rebuild |
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
/rebuild |
@Debiancc There are some CI problems, but it seems that they are not caused by this PR. |
/rebuild |
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
…estamp supported decimal type
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
/run-all-tests |
/run-unit-test |
@Debiancc please cherry pick this change to release 2.1 |
What problem does this PR solve?
fix #9770
What is changed and how it works?
In Datum.convertToMysqlTime function add
KindMysqlDecimal
switch case, and convert decimal to string then parse to TimeCheck List
Tests
decimal
todatetime
ortimestamp
when insert is not compatible with MySQL #9770)Side effects