Enable use of VOID in field VALUE statements
It is now possible to specify VOID values in field VALUE statements, to remove the field entirely.
This commit is contained in:
parent
7733b7b129
commit
444d7858b8
1 changed files with 6 additions and 1 deletions
|
@ -315,7 +315,12 @@ func (d *document) mrgFld(ctx context.Context) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
d.current.Iff(val, key)
|
||||
switch val.(type) {
|
||||
default:
|
||||
d.current.Iff(val, key)
|
||||
case *sql.Void:
|
||||
d.current.Del(key)
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue