aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2017-03-05 20:44:09 +0900
committerGitHub <noreply@github.com>2017-03-05 20:44:09 +0900
commit55cd56d7edb233f4a251a8821232e4cc6084e3d2 (patch)
tree6c075e6971ff66ff98a6c6e8e31f5509de68aeb6 /sqlite3.go
parentfix test (diff)
parent[vtable] Rename Context to SQLiteContext (diff)
downloadgolite-55cd56d7edb233f4a251a8821232e4cc6084e3d2.tar.gz
golite-55cd56d7edb233f4a251a8821232e4cc6084e3d2.tar.xz
Merge pull request #347 from DataDog/dd/vtable
Add Go API for virtual tables
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 6cd5c0e..c7eaf4d 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -627,11 +627,11 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
// Close the connection.
func (c *SQLiteConn) Close() error {
- deleteHandles(c)
rv := C.sqlite3_close_v2(c.db)
if rv != C.SQLITE_OK {
return c.lastError()
}
+ deleteHandles(c)
c.db = nil
runtime.SetFinalizer(c, nil)
return nil