Explorar o código

Merge pull request #866 from vrischmann/master

reset the context when calling Query.reset
Chris Bannister %!s(int64=8) %!d(string=hai) anos
pai
achega
4dd55dd51f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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