From 4e5abb5140adae1d02c3b1ea82277349e0f1329a Mon Sep 17 00:00:00 2001 From: Anthony Heber Date: Tue, 6 Oct 2015 00:52:20 -0600 Subject: [PATCH] Fix Large Query Support Experienced a problem when running large queries where the Interface slice isn't reset and holds the previous results. --- force.go | 1 + 1 file changed, 1 insertion(+) diff --git a/force.go b/force.go index f809c0df..4cda521a 100644 --- a/force.go +++ b/force.go @@ -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...)