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

Support for date and time literals #4127

Closed
knutwannheden opened this issue Aug 17, 2022 · 2 comments
Closed

Support for date and time literals #4127

knutwannheden opened this issue Aug 17, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request sql Issue with SQL

Comments

@knutwannheden
Copy link

As with MySQL it would be nice with date and time literals (see https://dev.mysql.com/doc/refman/8.0/en/date-and-time-literals.html) so that queries like the following can be written:

select *
from orders
where order_date between date '2022-01-01' and date '2022-03-31'
@knutwannheden
Copy link
Author

As a workaround the CONVERT() function can be used as in e.g. convert('2022-01-01', date). The STR_TO_DATE() function may not work as expected: #4128

@timsehn timsehn added the enhancement New feature or request label Aug 17, 2022
@timsehn timsehn added the sql Issue with SQL label Aug 24, 2022
@jycor jycor self-assigned this Jul 30, 2024
@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
enhancement New feature or request sql Issue with SQL
Projects
None yet
Development

No branches or pull requests

3 participants