zeroDate behavior for date_add and timestampdiff is not consistent in tidb #15234
Labels
component/expression
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
severity/moderate
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you expect to see?
timestampdiff and date_add should both return NULL or meaningful result.
BTW in mysql both timestampdiff and date_add return NULL
What did you see instead?
tidb-server -V
or runselect tidb_version();
on TiDB)?tidb master
The text was updated successfully, but these errors were encountered: