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

Update omit zero when no fields produces invalid syntax #1939

Open
mgazza opened this issue Dec 17, 2021 · 1 comment
Open

Update omit zero when no fields produces invalid syntax #1939

mgazza opened this issue Dec 17, 2021 · 1 comment

Comments

@mgazza
Copy link

mgazza commented Dec 17, 2021

Expect(s).To(Equal(`UPDATE "update_tests" AS "update_test" SET WHERE "update_test"."id" = NULL`))

When updating and the model contains all empty fields invalid update syntax is produced.

Suggest returning specific error to capture the case of a non-update

@mgazza
Copy link
Author

mgazza commented Dec 17, 2021

#1940

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

1 participant