Fix initial accumulator value for builtin_sum_rows 234/head
authorILYA Khlopotov <iilyak@apache.org>
Wed, 8 Mar 2017 20:24:46 +0000 (12:24 -0800)
committerILYA Khlopotov <iilyak@apache.org>
Wed, 8 Mar 2017 20:24:46 +0000 (12:24 -0800)
commit1f152daaac23dc96132139fb532786f77becdd64
tree23892318d9ca35411b5f42ef178da1fe3d4328af
parentcb3b35a736ccbb6cd43a9487108d1ab63197d064
Fix initial accumulator value for builtin_sum_rows

This a fixup for https://github.com/apache/couchdb-couch/pull/229.
The initial value for accumulator suppose to be 0. Since the result of
sum and count is integer. The problem was discovered by dialyzer.

COUCHDB-3305
src/couch_query_servers.erl