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

DATETIME_DIFF off by one error in some cases #229

Open
jeromefroe opened this issue Feb 10, 2025 · 0 comments · May be fixed by #230
Open

DATETIME_DIFF off by one error in some cases #229

jeromefroe opened this issue Feb 10, 2025 · 0 comments · May be fixed by #230

Comments

@jeromefroe
Copy link

The DATETIME_DIFF function returns incorrect results for queries where the difference between the input timestamps is greater than a multiple of 24 hours but does not cross a day boundary. For example, the following query should return 0, but it currently returns 1:

SELECT DATETIME_DIFF(DATETIME "2024-02-01 16:00:00", DATETIME "2024-02-01 15:30:00", DAY) as diff_day
@jeromefroe jeromefroe linked a pull request Feb 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant