dolt
dolt copied to clipboard
Incorrect return typefor UNIX_TIMESTAMP
According to the MySQL docs:
The return value [of UNIX_TIMESTAMP] is an integer if no argument is given or the argument does not include a fractional seconds part, or [DECIMAL](https://dev.mysql.com/doc/refman/8.0/en/fixed-point-types.html) if an argument is given that includes a fractional seconds part.
However, we appear to always return a float even when no argument is given.
MySQL:
mysql> select unix_timestamp();
+------------------+
| unix_timestamp() |
+------------------+
| 1712276989 |
+------------------+
Dolt:
main*> select unix_timestamp();
+-----------------------+
| unix_timestamp() |
+-----------------------+
| 1.712277000706879e+09 |
+-----------------------+
We appear to be re
Can i take this one?
Sure!
https://docs.dolthub.com/guides/contributing
fixed in: https://github.com/dolthub/go-mysql-server/pull/2576