You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cloning NodaTime Interval multirange mapping changes NpgsqlDbType to DateMultirange #4018
Cloning the NodaTime Interval[] multirange mapping changes its NpgsqlDbType from TimestampTzMultirange to DateMultirange, even though its store type remains tstzmultirange. Parameters created from the cloned mapping will therefore receive the wrong PostgreSQL type.
Minimal repro
Run this as a .NET 11 console application referencing src/EFCore.PG.NodaTime/EFCore.PG.NodaTime.csproj from this repository. No PostgreSQL server is required.
The cloning constructor in IntervalMultirangeMapping calls base(parameters, NpgsqlDbType.DateMultirange) rather than retaining the timestamp-with-time-zone multirange type used by the original constructor.
Environment
Confirmed against main at d98928a7, using .NET SDK 11.0.100-rc.2.26504.105 and EF Core 11.0.0-rc.2.26504.105. Discovered while auditing date/time formatting for #3532; this is independent of BCE formatting.
Activity
Fix date/time mapping round-tripping and cloning (#4022)
[10.0] Fix date/time mapping round-tripping and cloning (#4037)
[8.0] Fix date/time mapping round-tripping and cloning (#4039)