diff --git a/README.mkd b/README.mkd index baa786a..555ac1d 100644 --- a/README.mkd +++ b/README.mkd @@ -4,7 +4,7 @@ go-sqlite3 DESCRIPTION ----------- -sqlite3 driver for go that using exp/sql +sqlite3 driver for go that using database/sql LICENSE ------- diff --git a/example/main.go b/example/main.go index a17fa8b..6d6aa0e 100644 --- a/example/main.go +++ b/example/main.go @@ -1,7 +1,7 @@ package main import ( - "exp/sql" + "database/sql" "fmt" _ "github.com/mattn/go-sqlite3" "os" diff --git a/sqlite3.go b/sqlite3.go index 731cf73..088b110 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -20,8 +20,8 @@ _sqlite3_bind_blob(sqlite3_stmt *stmt, int n, void *p, int np) { import "C" import ( "errors" - "exp/sql" - "exp/sql/driver" + "database/sql" + "database/sql/driver" "unsafe" ) @@ -228,10 +228,6 @@ type SQLiteRows struct { } func (rc *SQLiteRows) Close() error { - rv := C.sqlite3_finalize(rc.s.s) - if rv != C.SQLITE_OK { - return errors.New(C.GoString(C.sqlite3_errmsg(rc.s.c.db))) - } return nil }