date_add/date_sub can return mysql.Time
.
#9813
Labels
component/expression
priority/P4
Minor issue, awaiting more evidence before prioritizing
type/compatibility
Bug Report
Although in MySQL's docs:
But in its actual implementation:
The return type can also be
Time
, which isDuration
in TiDB.So currently if the arg[0] is
Duration
we'll get the result with the year, month and day field. Which is not a reasonable return value.We need to cover this unexpected case.
The text was updated successfully, but these errors were encountered: