Skip to content

Commit

Permalink
Fix Large Query Support
Browse files Browse the repository at this point in the history
Experienced a problem when running large queries where the Interface
slice isn't reset and holds the previous results.
  • Loading branch information
aheber committed Oct 6, 2015
1 parent 3d3211b commit 4e5abb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions force.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ func (f *Force) Query(query string) (result ForceQueryResult, err error) {
if nextErr != nil {
return
}
nextResult.Records = []ForceRecord{}
json.Unmarshal(nextBody, &nextResult)

result.Records = append(result.Records, nextResult.Records...)
Expand Down

0 comments on commit 4e5abb5

Please sign in to comment.