Skip to content

[9.0] Fix array type inference for mixed collection types - #3997

Merged
roji merged 1 commit into
hotfix/9.0.5from
roji-array-inference-backport-9-0
Oct 17, 2026
Merged

roji merged 1 commit into
hotfix/9.0.5from
roji-array-inference-backport-9-0

Conversation

@roji

@roji roji commented Oct 17, 2026

Copy link
Copy Markdown
Member

Backport of #3991 to hotfix/9.0.5.

Infer a mismatched operand's collection mapping only when the inferred array mapping has a converter, preserving both its store type and element mapping. This fixes mixed CLR collection types with converted elements while preserving explicit range arrays and converter-free array/list parameter identity. Parameter binding is unchanged.

Release adaptations: add a small internal wrapper for EF 9's protected FindCollectionMapping, use EF 9 test initialization and SQL parameter naming, and use the supported IReadOnlyCollection<T> property shape instead of ReadOnlyCollection<T>.

Validation: functional-test project builds with no warnings or errors; all 19 new regression cases pass. Surrounding array/list, primitive-collection, range, and ad-hoc query suites: 701 passed, 8 existing skips, 0 failures (PostgreSQL 18).

Backport #3991 to hotfix/9.0.5, adapting collection mapping access and test initialization for EF 9.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 6e67bdce-3a4c-41aa-be7a-1794017659fd
@roji
roji merged commit dceacc5 into hotfix/9.0.5 Oct 17, 2026
10 checks passed
@roji
roji deleted the roji-array-inference-backport-9-0 branch October 17, 2026 12:02
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