Repository navigation
[8.0] Fix BCE NodaTime SQL literal formatting - #4026
Merged
Merged
Conversation
Backport #4023 (00b5456) to hotfix/8.0.12. Preserve ISO JSON serialization and infinity handling, adapt test placement and LocalDateTime extrema to the 8.0 branch, and cover the original 384 BCE date. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 23da65c3-017a-4188-99fc-477970542012
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 #4023, merged as
00b545696bdac254756b32aa4a25554001b82e91, tohotfix/8.0.12.Format BCE NodaTime SQL literals using year-of-era plus
BCfor LocalDate, LocalDateTime, Instant (including legacy mappings), OffsetDateTime, ZonedDateTime, ranges and multiranges. Preserve existing ISO JSON serialization and infinity handling. BCE JSON-to-PostgreSQL casts remain outside this fix.Port the source SQL/JSON and range/multirange coverage to the 8.0 test projects, using the branch's existing LocalDateTime extrema expressions. Add the original
new LocalDate(Era.BeforeCommon, 384, 1, 1)regression expectingDATE '0384-01-01 BC'. No dependency updates or unrelated date/time fixes.Validation:
dotnet test test/EFCore.PG.Tests/EFCore.PG.Tests.csproj --no-restore --filter 'FullyQualifiedName~NpgsqlTypeMappingTest' --verbosity quiet: 137 passed, 6 skipped.dotnet test test/EFCore.PG.NodaTime.FunctionalTests/EFCore.PG.NodaTime.FunctionalTests.csproj --no-restore --filter 'FullyQualifiedName~NpgsqlNodaTimeTypeMappingTest' --verbosity quiet: 113 passed, including legacy mappings.Fixes #3532