We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0dc88d commit d1adee2Copy full SHA for d1adee2
1 file changed
cmd/slowql-replayer/main.go
@@ -200,13 +200,13 @@ func (db *database) replay(f io.Reader) (results, error) {
200
s.Suffix = " queries replayed: " + strconv.Itoa(r.queries)
201
202
if !db.dryRun {
203
- conn, err := db.drv.Query(q.Query)
+ rows, err := db.drv.Query(q.Query)
204
if err != nil {
205
r.errors++
206
db.logger.Debugf("failed to execute query:\n%s\nerror: %s", q.Query, err)
207
}
208
- if conn != nil {
209
- conn.Close()
+ if rows != nil {
+ rows.Close()
210
211
212
0 commit comments