You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason for this issue is below:
When building unixTimestamp, since the first argument is string, it will be cast to datetime by builtinCastStringAsTimeSig.
In builtinCastStringAsTimeSig, it will ignore InvalidErr and return Null.
In MySQL, if it's a invalid string, unixTimestamp will return 0, but in TiDB, unixTimestamp doesn't know it's a invalid string.
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
In MySQL
In TiDB
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: