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

Weird behavior for datetime literal syntax. #7200

Closed
nicktobey opened this issue Dec 20, 2023 · 1 comment
Closed

Weird behavior for datetime literal syntax. #7200

nicktobey opened this issue Dec 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nicktobey
Copy link
Contributor

Dolt appears to not parse the date or time literal syntax. It does parse a datetime literal, but the result is... odd.

MySQL:

mysql> select date '2012-12-31';
+-------------------+
| date '2012-12-31' |
+-------------------+
| 2012-12-31        |
+-------------------+

select time '10:11:12';
+-----------------+
| time '10:11:12' |
+-----------------+
| 10:11:12        |
+-----------------+

select timestamp '2012-12-31 11:30:45';
+---------------------------------+
| timestamp '2012-12-31 11:30:45' |
+---------------------------------+
| 2012-12-31 11:30:45             |
+---------------------------------+

Dolt:

select time '10:11:12';
column "time" could not be found in any table in scope
json> select date '2012-12-31';
column "date" could not be found in any table in scope

select timestamp '2012-12-31 11:30:45';
+---------------------+
| 2012-12-31 11:30:45 |
+---------------------+
| 1000                |
+---------------------+
@fulghum fulghum added the bug Something isn't working label Dec 21, 2023
@jycor
Copy link
Contributor

jycor commented Jul 30, 2024

This is fixed by dolthub/vitess#346

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

No branches or pull requests

3 participants