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:
Tobie Morgan Hitchcock 2017-12-04 10:10:29 +00:00
parent 7733b7b129
commit 444d7858b8

View file

@ -315,7 +315,12 @@ func (d *document) mrgFld(ctx context.Context) (err error) {
}
}
switch val.(type) {
default:
d.current.Iff(val, key)
case *sql.Void:
d.current.Del(key)
}
return