From ff4db894a2af433450fb49e1f319fb206b140215 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 4 Sep 2017 07:20:03 -0700 Subject: [PATCH] scan count with wherein, fixes #217 --- controller/scan.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/scan.go b/controller/scan.go index 3a7bc2f8..0a0dc6ae 100644 --- a/controller/scan.go +++ b/controller/scan.go @@ -39,7 +39,8 @@ func (c *Controller) cmdScan(msg *server.Message) (res string, err error) { } sw.writeHead() if sw.col != nil { - if sw.output == outputCount && len(sw.wheres) == 0 && sw.globEverything == true { + if sw.output == outputCount && len(sw.wheres) == 0 && + len(sw.whereins) == 0 && sw.globEverything == true { count := sw.col.Count() - int(s.cursor) if count < 0 { count = 0