aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorMarko Kungla <marko.kungla@gmail.com>2017-03-24 01:06:55 +0100
committerMarko Kungla <marko.kungla@gmail.com>2017-03-24 01:06:55 +0100
commita1253acb6bf0c2e9f9ac47e61ee200b8b7f4c7f2 (patch)
tree91e370ee11e5caed097d02073418954c0b669ac5 /sqlite3.go
parentclose connection when got errors in Open (diff)
downloadgolite-a1253acb6bf0c2e9f9ac47e61ee200b8b7f4c7f2.tar.gz
golite-a1253acb6bf0c2e9f9ac47e61ee200b8b7f4c7f2.tar.xz
Removed ambitious conn.Close()
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go1
1 files changed, 0 insertions, 1 deletions
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)}
}