Skip to content

[9.0] Fix BCE NodaTime SQL literal formatting - #4025

Merged
roji merged 1 commit into
hotfix/9.0.5from
roji-9-0-bce-nodatime-literals
Oct 18, 2026
Merged

roji merged 1 commit into
hotfix/9.0.5from
roji-9-0-bce-nodatime-literals

Conversation

@roji

@roji roji commented Oct 18, 2026

Copy link
Copy Markdown
Member

Backport of #4023 (merged commit 00b545696bdac254756b32aa4a25554001b82e91) to hotfix/9.0.5.

Format BCE NodaTime SQL literals using year-of-era and a BC suffix 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

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
@roji roji linked an issue Oct 18, 2026 that may be closed by this pull request
@roji
roji merged commit bcd9006 into hotfix/9.0.5 Oct 18, 2026
10 checks passed
@roji
roji deleted the roji-9-0-bce-nodatime-literals branch October 18, 2026 16:03
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.

Invalid PostgreSQL SQL literals for BCE NodaTime dates and timestamps

1 participant