From 6c3a0d73e6822e3a529f7542babd4d0970c768a1 Mon Sep 17 00:00:00 2001 From: Travis Date: Wed, 24 Jan 2018 09:31:57 -0600 Subject: [PATCH] make sure QueryResultTypeUint64 (count) is handled --- response.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/response.go b/response.go index 1971c22..34beeba 100644 --- a/response.go +++ b/response.go @@ -149,6 +149,8 @@ func newQueryResultFromInternal(result *pbuf.QueryResult) (*QueryResult, error) case QueryResultTypeSumCount: sum = result.SumCount.Sum count = uint64(result.SumCount.Count) + case QueryResultTypeUint64: + count = result.N case QueryResultTypeBool: changed = result.Changed }