Repository navigation
[9.0] Fix null propagation in date/time interval construction - #4017
Merged
Merged
Conversation
Backport #4008 to hotfix/9.0.5, adapting regression coverage to the existing ad hoc query test infrastructure. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4380d91d-c065-4628-b4b6-a7b941d89577
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #4008 to
hotfix/9.0.5.Use PostgreSQL concatenation semantics when constructing date/time intervals so nullable arguments propagate as null instead of producing invalid interval strings. Normal C# string-concatenation behavior remains unchanged.
Adapt the regression coverage to 9.0's existing ad hoc query tests rather than importing newer temporal fixtures. Cover nullable
DateTime.AddDaysandDateOnly.AddYears/AddMonthsarguments, zero and positive/negative fractional day intervals, and normal C# concatenation. Update the existing parameterized-interval SQL baseline.Validation: reproduced PostgreSQL error 22007 before the fix; the focused temporal, parameterized-interval, and string-concatenation selection passes on .NET 9 / PostgreSQL 18.4 (172 passed, 4 existing skips), serialized with the shared backport database lock.
Fixes #2889