forked from mirror/go-sqlite3
Fix: Condition of queryOnly Variable
This commit is contained in:
parent
4857d602fe
commit
d6b854186d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue