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