Handle return data from remote ClearBit()

Previously `ClearBit()` did not handle returned data correctly
and panicked. This change adds it to the list of available return
types.
This commit is contained in:
Ben Johnson 2016-10-18 11:54:00 -06:00
parent cb5a4176c3
commit a6d77ef580
No known key found for this signature in database
GPG key ID: 81741CD251883081

View file

@ -695,6 +695,8 @@ func (e *Executor) exec(node *Node, db string, q *pql.Query, slices []uint64, op
v, err = pb.Results[i].GetN(), nil
case *pql.SetBit:
v, err = pb.Results[i].GetChanged(), nil
case *pql.ClearBit:
v, err = pb.Results[i].GetChanged(), nil
case *pql.SetBitmapAttrs:
case *pql.SetProfileAttrs:
default: