Repository navigation
[8.0] Fix null propagation in date/time interval construction - #4016
Merged
Merged
Conversation
Backport 6c1f5e4 from #4008, adapting nullable-argument regression coverage to the existing 8.0 operators test infrastructure. Co-authored-by: Copilot App <[email protected]> Copilot-Session: e3176f61-58ea-453d-94b3-fa642f2c42ab
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/8.0.12.Use
PgUnknownBinaryExpression("||")when constructing nonconstant date/time intervals so nullable arguments propagate null instead of being coalesced to empty strings. Normal C# string concatenation is unchanged.Adapt the nullable
DateTime.AddDaysandDateOnly.AddYears/AddMonthsregression coverage to the existing 8.0 operators test infrastructure, covering null, zero, positive, and negative amounts. Update the parameterized Northwind interval SQL baseline.Validation on PostgreSQL 18.4: 558 focused cases passed, 7 existing skips; tests serialized with the shared backport lock. Confirmed that the null regression reproduces PostgreSQL error 22007 without the fix.
Fixes #2889