Skip to content

Navigation Menu

Sign in
Sign up

Add interval expression - #54

Open
wammaster wants to merge 3 commits into
David-Wobrock:main from
wammaster:main
Open

Add interval expression #54
wammaster wants to merge 3 commits into
David-Wobrock:main from
wammaster:main

Conversation

@wammaster

@wammaster wammaster commented Mar 14, 2024

Copy link
Copy Markdown

The current version doesn't handle well the interval statement.
If we try to validate this SQL code:

SELECT * FROM table WHERE date >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)

we lose the day parameter of the interval, here is what is output:

SELECT *
FROM table
WHERE date >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7)

With this PR we will stop losing the unit of time.

Grégory Mazerand added 3 commits March 14, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /