Skip to content

[9.0] Fix null checks on unbounded NodaTime Interval bounds - #4004

Merged
roji merged 2 commits into
hotfix/9.0.5from
roji-interval-bounds-backport-9-0
Oct 18, 2026
Merged

roji merged 2 commits into
hotfix/9.0.5from
roji-interval-bounds-backport-9-0

Conversation

@roji

@roji roji commented Oct 17, 2026

Copy link
Copy Markdown
Member

Backport of #3999

Fixes #3585

Correct the nullability propagation metadata for NodaTime Interval.Start and Interval.End: PostgreSQL lower() and upper() can return null for unbounded intervals even when the interval itself is non-null.

Port the regression test into 9.0's existing NodaTimeQueryNpgsqlTest class and adapt its SQL baseline to the ::timestamptz projection casts generated by this branch.

Validation: functional-test project builds successfully; all 38 focused Interval/DateInterval tests pass, including both synchronous and asynchronous unbounded-bound regression cases.

roji and others added 2 commits October 17, 2026 16:37
Backport of #3999. Fixes #3585.

(cherry picked from commit d98928a)

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2b4f4883-6fff-4d52-ad56-98b1d5bc7c5e
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2b4f4883-6fff-4d52-ad56-98b1d5bc7c5e
@roji
roji merged commit 371b3d5 into hotfix/9.0.5 Oct 18, 2026
10 checks passed
@roji
roji deleted the roji-interval-bounds-backport-9-0 branch October 18, 2026 08:48
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.

Null check is wrongly dropped for NodaTime.Interval.Start and NodaTime.Interval.End with efcore linq2sql

1 participant