Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert_all with query was not using field source #4433

Merged

Conversation

greg-rychlewski
Copy link
Member

The issue is that when a query is used as the data for insert_all, the map keys are not converted into the field source names. This is in contrast to when a list of maps/kw lists are given, which use the field source name.

I believe we want to standardize this so it's the same behaviour both ways but it would be good to confirm you agree. Thanks.

Copy link
Member

@v0idpwn v0idpwn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right to me

@greg-rychlewski greg-rychlewski merged commit 6f45d02 into elixir-ecto:master Jun 17, 2024
6 checks passed
@greg-rychlewski greg-rychlewski deleted the insert_all_source_field_fix branch June 17, 2024 22:26
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.

3 participants