Przeglądaj źródła

reset the context when calling Query.reset

Vincent Rischmann 8 lat temu
rodzic
commit
8dd0437563
1 zmienionych plików z 1 dodań i 0 usunięć
  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