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

Translations around DateOnly.DayNumber #3333

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

roji
Copy link
Member

@roji roji commented Oct 28, 2024

  • Translate DateOnly.DayNumber -> `x - DATE '0001-01-01'
  • Translate DateOnly.FromDayNumber -> DATE '0001-01-01' + x
  • Optimize translation of (x - c) - (y - c) to x - y

Closes #3194

@roji roji merged commit c484080 into npgsql:main Oct 28, 2024
12 of 15 checks passed
@roji roji deleted the DateOnlyDayNumber branch October 28, 2024 07:42
roji added a commit to roji/Npgsql.Doc that referenced this pull request Oct 28, 2024
roji added a commit to npgsql/doc that referenced this pull request Oct 28, 2024
WhatzGames pushed a commit to WhatzGames/efcore.pg that referenced this pull request Dec 18, 2024
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.

Translate DateOnly.DayNumber subtraction
1 participant