pg
pg copied to clipboard
Update omit zero when no fields produces invalid syntax
https://github.com/go-pg/pg/blob/691def15f539b232452a5c982c08c5804b52bef1/orm/update_test.go#L59
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
https://github.com/go-pg/pg/pull/1940