Skip to content

Commit

Permalink
Adding the ability to pass limit=0 (in order to support unlimited dat…
Browse files Browse the repository at this point in the history
…a in response)
  • Loading branch information
susyo committed Aug 21, 2018
1 parent ef0389a commit 61dd95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (b *Builder) Parse(params url.Values) (*DBQuery, error) {
}
// parse and validate limit.
if v := params.Get(b.LimitParam); v != "" {
n, err := parseNumber(b.LimitParam, v, 1, b.LimitMaxValue)
n, err := parseNumber(b.LimitParam, v, 0, b.LimitMaxValue)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 61dd95c

Please sign in to comment.