forked from mirror/go-sqlcipher
Merge pull request #4 from bytbox/master
Update to build at tip (exp/sql -> database/sql)
This commit is contained in:
commit
78af0c22f5
|
@ -4,7 +4,7 @@ go-sqlite3
|
|||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
sqlite3 driver for go that using exp/sql
|
||||
sqlite3 driver for go that using database/sql
|
||||
|
||||
LICENSE
|
||||
-------
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"exp/sql"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"os"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue