Skip to content

Update omit zero when no fields produces invalid syntax #1939

Description

@mgazza

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions