Skip to content

Conversation

@jycor
Copy link
Contributor

@jycor jycor commented Apr 15, 2024

This PR implements the TO_DAYS and FROM_DAYS MySQL functions.
Initially, I attempted to use the existing logic from Add/Sub Date along with the 0 year, but there were overflow issues.
So, there's a skipped test for Intervals.

to_days docs:
https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_to-days

from_days docs:
https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_from-days

Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jycor jycor merged commit 483f5cc into main Apr 15, 2024
@jycor jycor deleted the james/days branch April 15, 2024 23:57
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 this pull request may close these issues.

3 participants