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

Repo.update! should not execute an UPDATE when the only changed field is the updated_at timestamp #731

Closed
ericentin opened this issue Jun 30, 2015 · 0 comments

Comments

@ericentin
Copy link
Contributor

If you call Repo.update! with a changeset for a schema with timestamps, the DB is sent an UPDATE even if the only changed field is the updated_at timestamp. After a discussion of the issue with @josevalim in #elixir-lang, the conclusion was that the default behavior should probably be to not produce an UPDATE.

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

No branches or pull requests

2 participants