Browse Source

Reset query before adding it back to pool

Ian Lozinski 9 years ago
parent
commit
3702832c1e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      session.go

+ 1 - 0
session.go

@@ -968,6 +968,7 @@ func (q *Query) Release() {
 		return
 	}
 	pool := q.session.queryPool
+	q.reset()
 	pool.Put(q)
 }