Should not omit cast function when convert date/timestamp type to datetime in if/ifnull/case when function #26485
Labels
severity/moderate
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
type/stale
This issue has not been updated for a long time.
Bug Report!
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
run master
2. What did you expect to see? (Required)
In MySQL, no matter the if conditions, the return type is determinate, no matter condition is true or not
3. What did you see instead (Required)
in TiDB, return type of if function is variable and thus cause the result is wrong.
4. What is your TiDB version? (Required)
master branch
The text was updated successfully, but these errors were encountered: