couchdb-golang icon indicating copy to clipboard operation
couchdb-golang copied to clipboard

func (*Database) View(...) doesn't execute, only returns empty ViewResults

Open jaimeyu opened this issue 6 years ago • 0 comments

GoDoc states "View executes a predefined design document view and returns the results." but when I took a look at the source, it only returns an empty ViewResult because of function newViewResults(). It never calls ViewResults:fetch() to get the view which I noticed is done in the methods associated with ViewResults.

Either documentation or implementation is incorrect and documentation should be updated to reflect the correct behaviour.

jaimeyu avatar Jul 05 '18 17:07 jaimeyu