Open kipply opened 3 years ago
Hello @kipply,
Is this case something that could be solved by using the omitempty
option? That word tells upper to ignore the field when it has a zero value:
type User struct {
ID int `db:"id,omitempty"`
}
Let me know if your case is different.
An insert or save query (that goes to an insert) will pass through all columns, and using a null value if that column had no input.
This causes failures with postgres in the form of either;
will test with upper v4 soon