From d6b854186dafe2b2dbdc94fe7783fdd5e1544ede Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Tue, 29 May 2018 14:57:25 +0200 Subject: [PATCH] Fix: Condition of queryOnly Variable --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index e1b7809..ab0dbc4 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -1304,7 +1304,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { } // Query Only - if queryOnly > 0 { + if queryOnly > -1 { if err := exec(fmt.Sprintf("PRAGMA query_only = %d;", queryOnly)); err != nil { C.sqlite3_close_v2(db) return nil, err