Browse Source

reset the context when calling Query.reset

Vincent Rischmann 8 years ago
parent
commit
8dd0437563
1 changed files with 1 additions and 0 deletions
  1. 1 0
      session.go

+ 1 - 0
session.go

@@ -1022,6 +1022,7 @@ func (q *Query) reset() {
 	q.defaultTimestamp = false
 	q.disableSkipMetadata = false
 	q.disableAutoPage = false
+	q.context = nil
 }
 
 // Iter represents an iterator that can be used to iterate over all rows that