Procházet zdrojové kódy

reset the context when calling Query.reset

Vincent Rischmann před 8 roky
rodič
revize
8dd0437563
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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