Repository navigation
[9.0] Fix BCE NodaTime SQL literal formatting - #4025
Merged
Merged
Conversation
Backport #4023 to 9.0, preserving ISO JSON serialization and infinity handling while formatting BCE SQL literals with year-of-era and BC. (cherry picked from commit 00b5456) Co-authored-by: Copilot App <[email protected]> Copilot-Session: 113c1bef-4117-4954-bc8c-8da076bdf6c1
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 commit
00b545696bdac254756b32aa4a25554001b82e91) tohotfix/9.0.5.Format BCE NodaTime SQL literals using year-of-era and a
BCsuffix for dates, timestamps (including legacy Instant), ranges, and multiranges. Preserve existing ISO JSON serialization and infinity handling. The only release-specific adaptation is resolving a using-directive conflict; no dependency changes or unrelated date/time fixes are included.Port the paired SQL/JSON and range/multirange coverage from the merged fix. BCE JSON-to-PostgreSQL casts remain outside this backport.
Validation: affected mapping tests passed (243 passed, 6 existing skips), legacy NodaTime mapping tests passed (6 passed), and local PostgreSQL 18 accepted the BCE scalar, range, and multirange SQL literals.
Fixes #3532