Skip to content
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

DATE_ADD truncates time #4376

Closed
bheni opened this issue Sep 20, 2022 · 0 comments · Fixed by dolthub/go-mysql-server#1339
Closed

DATE_ADD truncates time #4376

bheni opened this issue Sep 20, 2022 · 0 comments · Fixed by dolthub/go-mysql-server#1339
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@bheni
Copy link
Contributor

bheni commented Sep 20, 2022

In dolt I get:

SELECT NOW(), DATE_ADD(NOW(), INTERVAL 14 DAY);
+----------------------------+----------------------------------+
| NOW()                      | DATE_ADD(NOW(), INTERVAL 14 DAY) |
+----------------------------+----------------------------------+
| 2022-09-20 13:23:05.020674 | 2022-10-04                       |
+----------------------------+----------------------------------+

In mysql you get this:


+----------------------------+----------------------------------+
| NOW()                      | DATE_ADD(NOW(), INTERVAL 14 DAY) |
+----------------------------+----------------------------------+
| 2022-09-20 13:24:06        | 2022-10-04 13:24:06              |
+----------------------------+----------------------------------+



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants