Skip to content

[8.0] Fix date/time mapping round-tripping and cloning - #4039

Merged
roji merged 1 commit into
hotfix/8.0.12from
roji-backport-date-time-mappings-8
Oct 18, 2026
Merged

roji merged 1 commit into
hotfix/8.0.12from
roji-backport-date-time-mappings-8

Conversation

@roji

@roji roji commented Oct 18, 2026

Copy link
Copy Markdown
Member

Backports #4022, using its final merged commit b038505, to hotfix/8.0.12.

All four bugs are present on 8.0:

  • Preserve TimestampTzMultirange when cloning array/list Interval mappings and configuring parameters.
  • Preserve fractional DateTimeOffset offsets in timetz SQL literals, embedded literals and JSON. Retain whole-hour output and share invariant formatting.
  • Retain requested precision when cloning LocalDateTime timestamp mappings.
  • Read existing nonzero-offset ZonedDateTime JSON as a fixed-offset zone. Leave its writer, persisted representation and six-digit precision unchanged; the original named zone is not recoverable from this format.

The product changes are limited to the four mapping classes. No query-pipeline, dependency, unrelated BCE formatting or persisted-format changes are included. Adapt the source JSON query regressions to EF8 OwnsOne/OwnsMany with ToJson, asserting exact EF8 SQL for scalar and recordset queries. Cover primitive collections through whole-document materialization because EF8 does not translate the newer JSON primitive-collection query shape.

Verification on .NET SDK 8.0.425 / PostgreSQL 18.4:

  • Mapping regressions reproduced all four bugs before the fixes.
  • NodaTime mappings, legacy mappings and date/time queries, plus owned-JSON regressions: 334 passed.
  • Provider mapping tests: 153 passed, 6 existing skips.
  • timetz JSON functional regressions: 4 passed.

Fixes #4018
Fixes #4019
Fixes #4020
Fixes #4021

Backport the four mapping fixes from #4022 (b038505), adapting JSON query regressions to EF8 owned JSON APIs.

Fixes #4018
Fixes #4019
Fixes #4020
Fixes #4021

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 7237f9f5-d445-43f6-b807-10c2a2aea985
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant