aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2017-03-24 09:12:00 +0900
committerGitHub <noreply@github.com>2017-03-24 09:12:00 +0900
commitb2e464529e88db676302aa63a4ce36711633950e (patch)
tree91e370ee11e5caed097d02073418954c0b669ac5 /sqlite3.go
parentclose connection when got errors in Open (diff)
parentRemoved ambitious conn.Close() (diff)
downloadgolite-b2e464529e88db676302aa63a4ce36711633950e.tar.gz
golite-b2e464529e88db676302aa63a4ce36711633950e.tar.xz
Merge pull request #398 from mkungla/qfe1
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)}
}