mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
allow for QueryResultTypeNil
This commit is contained in:
parent
d8559ae469
commit
5fa7dfd63d
1 changed files with 4 additions and 1 deletions
|
|
@ -1627,7 +1627,8 @@ func (h *Handler) logger() *log.Logger {
|
|||
|
||||
// QueryResult types.
|
||||
const (
|
||||
QueryResultTypeBitmap uint32 = iota
|
||||
QueryResultTypeNil uint32 = iota
|
||||
QueryResultTypeBitmap
|
||||
QueryResultTypePairs
|
||||
QueryResultTypeSumCount
|
||||
QueryResultTypeUint64
|
||||
|
|
@ -1727,6 +1728,8 @@ func encodeQueryResponse(resp *QueryResponse) *internal.QueryResponse {
|
|||
case bool:
|
||||
pb.Results[i].Type = QueryResultTypeBool
|
||||
pb.Results[i].Changed = result
|
||||
case nil:
|
||||
pb.Results[i].Type = QueryResultTypeNil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue