Skip to content

Map insert_all source fields through the destination schema - #4795

Merged
josevalim merged 7 commits into
elixir-ecto:masterfrom
lukaszsamson:ls-insert-all-writability
Sep 27, 2026
Merged

josevalim merged 7 commits into
elixir-ecto:masterfrom
lukaszsamson:ls-insert-all-writability

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

This PR maps selected fields through the destination schema. It keeps headers aligned with the source select list. This addresses the cases where destination writeable: true and renamed columns were not respected. It also hardens checks against duplicate projections and other unsupported cases. Tests cover mapped and read-only fields, map updates, and schema and non-schema sources

Fixes #4794

@josevalim
josevalim merged commit f4d84a1 into elixir-ecto:master Sep 27, 2026
8 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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.

insert_all with queries ignore field mapping and writability

2 participants