From a1253acb6bf0c2e9f9ac47e61ee200b8b7f4c7f2 Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Fri, 24 Mar 2017 01:06:55 +0100 Subject: [PATCH] Removed ambitious conn.Close() --- sqlite3.go | 1 - 1 file changed, 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 375cf79..cbde900 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -609,7 +609,6 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) { rv = C.sqlite3_busy_timeout(db, C.int(busyTimeout)) if rv != C.SQLITE_OK { - conn.Close() return nil, Error{Code: ErrNo(rv)} }