Skip to content

Commit 641c69e

Browse files
committed
Added the ArrayLimit run optarg
1 parent 00561cc commit 641c69e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

query.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ type RunOpts struct {
113113
Profile interface{} `gorethink:"profile,omitempty"`
114114
UseOutdated interface{} `gorethink:"use_outdated,omitempty"`
115115
NoReply interface{} `gorethink:"noreply,omitempty"`
116+
ArrayLimit interface{} `gorethink:"array_limit,omitempty"`
116117
TimeFormat interface{} `gorethink:"time_format,omitempty"`
117118
GroupFormat interface{} `gorethink:"group_format,omitempty"`
118119
BinaryFormat interface{} `gorethink:"binary_format,omitempty"`

query_aggregation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (t Term) Distinct(optArgs ...DistinctOpts) Term {
2727
if len(optArgs) >= 1 {
2828
opts = optArgs[0].toMap()
2929
}
30-
return constructMethodTerm(t, "Distinct", p.Term_DISTINCT, []interface{}, opts)
30+
return constructMethodTerm(t, "Distinct", p.Term_DISTINCT, []interface{}{}, opts)
3131
}
3232

3333
// Takes a stream and partitions it into multiple groups based on the

0 commit comments

Comments
 (0)