This repository was archived by the owner on Nov 20, 2021. It is now read-only.
Commit f05d389
pkg/e2db: omit zero-value required fields from Update
Change Update behavior to no longer error when a zero value is passed
for a field marked "required". Based on Insert validation, the field
must already be set in the table, so Update will skip setting the field.1 parent a546630 commit f05d389
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
| |||
0 commit comments