Removed ambitious conn.Close()

This commit is contained in:
Marko Kungla 2017-03-24 01:06:55 +01:00
parent fc03fa9989
commit a1253acb6b
No known key found for this signature in database
GPG Key ID: 5B2291269BCBC594
1 changed files with 0 additions and 1 deletions

View File

@ -609,7 +609,6 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
rv = C.sqlite3_busy_timeout(db, C.int(busyTimeout)) rv = C.sqlite3_busy_timeout(db, C.int(busyTimeout))
if rv != C.SQLITE_OK { if rv != C.SQLITE_OK {
conn.Close()
return nil, Error{Code: ErrNo(rv)} return nil, Error{Code: ErrNo(rv)}
} }