Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
make sure QueryResultTypeUint64 (count) is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
travisturner committed Jan 24, 2018
1 parent d0e74c5 commit 6c3a0d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6c3a0d7

Please sign in to comment.