Skip to content

Conversation

milmazz
Copy link
Contributor

@milmazz milmazz commented Jun 20, 2025

Offer some guidance to users when they upsert records with the :replace_all or :replace_all_except options, and the resulting list of fields to update is empty.

Please keep in mind that an empty list of fields to replace will produce an SQL Syntax error, as noted in elixir-ecto/ecto_sql#674, so we're proactively offering some advice to the users.

…produce an empty-list of fields to replace
@josevalim josevalim merged commit db12e07 into elixir-ecto:master Jun 20, 2025
7 checks passed
@josevalim
Copy link
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.

2 participants