-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unix_timestamp
is not compatible with MySQL
#10361
Comments
The reason is that when building |
Confirming this issue still exists in master: select unix_timestamp("-1");
select unix_timestamp(cast("-1" as datetime));
..
mysql> select unix_timestamp("-1");
+----------------------+
| unix_timestamp("-1") |
+----------------------+
| NULL |
+----------------------+
1 row in set, 1 warning (0.00 sec)
mysql> select unix_timestamp(cast("-1" as datetime));
+----------------------------------------+
| unix_timestamp(cast("-1" as datetime)) |
+----------------------------------------+
| NULL |
+----------------------------------------+
1 row in set, 1 warning (0.00 sec)
mysql> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v4.0.0-beta.2-750-g8a661044c
Edition: Community
Git Commit Hash: 8a661044cedf8daad1de4fbf79a390962b6f6c3b
Git Branch: master
UTC Build Time: 2020-07-10 10:52:37
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec) |
tidb
mysql
|
This looks related to #9861 |
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: