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 b8b5cb0337
commit aaf88563e3

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: