Close rows if not nil
This commit is contained in:
@@ -175,7 +175,9 @@ func (c *SQLiteConn) Query(query string, args []driver.Value) (driver.Rows, erro
|
||||
if s.t == "" {
|
||||
return rows, nil
|
||||
}
|
||||
if rows != nil {
|
||||
rows.Close()
|
||||
}
|
||||
s.Close()
|
||||
query = s.t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user