Fix: Condition of queryOnly Variable

This commit is contained in:
Gert-Jan Timmer 2018-05-29 14:57:25 +02:00
parent 4857d602fe
commit d6b854186d
1 changed files with 1 additions and 1 deletions

View File

@ -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