types: fix converting decimal to datetime and timestamp#9899
types: fix converting decimal to datetime and timestamp#9899zz-jason merged 2 commits intopingcap:masterfrom
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 |
qw4990
left a comment
There was a problem hiding this comment.
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 |
|
/rebuild |
|
@Debiancc There are some CI problems, but it seems that they are not caused by this PR. |
|
/rebuild |
…estamp supported decimal type
|
/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
KindMysqlDecimalswitch case, and convert decimal to string then parse to TimeCheck List
Tests
decimaltodatetimeortimestampwhen insert is not compatible with MySQL #9770)Side effects