Closed
Labels
area/rangesRange unions, variants and the shape enginesenhancementNew feature or requestpackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQL
Milestone
Description
Problem
Clamp on Int32Range, Int64Range and DecimalRange runs as SQL on main since #406 (PR #440, merged as 84dc121). On release/10.x it still runs in memory only, so a 10.x query can't filter or order by a clamped value.
Change
Cherry-pick 5ffc7b6 with -x into a PR against release/10.x:
- The
Clamparm inValueRangesMethodCallTranslator. ClampTranslationTests,ClampParityTests(an oracle, with the seedclamp-reads-the-stored-exclusive-upper-bound.patch), and the client-only tests moved toDateRange.Clamp.translation-support.json'sexceptmap, claims E31 and E74,docs/efcore.md#what-runs-where,docs/ranges.mdand the EF Core README.- The changelog row goes under
[10.3.0]### Added, after theLengthrow from 10.x: translate Length on Int32Range and Int64Range (port of #405) #438.
Done when
On release/10.x, the translation and parity tests pass on the EF floor and the newest-patch leg (PostgreSQL 16 and 18). The seed fails the parity test, and the translation-support probe passes with the three closed types server.
Release
### Added in 10.3.0. Fixed only on release/10.x, so close it by hand.
Metadata
Metadata
Assignees
Labels
area/rangesRange unions, variants and the shape enginesenhancementNew feature or requestpackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQL
Activity
CaffeinatedCoder commentedon Oct 25, 2026
PR #442.
feat: translate Clamp on Int32Range, Int64Range and DecimalRange (#406)
Merge pull request #442 from CaffeinatedCoder/feat/441-translate-clam…
CaffeinatedCoder commentedon Oct 25, 2026
Fixed on
release/10.xby PR #442 (merged as f83dc29).ClamponInt32Range,Int64RangeandDecimalRangeruns as SQL on this line too, andClampParityTestsholds it. Closed by hand, becauseCloses #nacts only onmain.