forked from mirror/go-sqlite3
use variable db
This commit is contained in:
parent
d03b7b541f
commit
2acfafad58
|
@ -772,7 +772,7 @@ func (s *SQLiteStmt) query(ctx context.Context, args []namedValue) (driver.Rows,
|
||||||
select {
|
select {
|
||||||
case <-rows.done:
|
case <-rows.done:
|
||||||
default:
|
default:
|
||||||
C.sqlite3_interrupt(s.c.db)
|
C.sqlite3_interrupt(db)
|
||||||
rows.Close()
|
rows.Close()
|
||||||
}
|
}
|
||||||
case <-rows.done:
|
case <-rows.done:
|
||||||
|
|
Loading…
Reference in New Issue