Merge pull request #4 from bytbox/master

Update to build at tip (exp/sql -> database/sql)
This commit is contained in:
mattn 2012-01-20 19:58:11 -08:00
commit 78af0c22f5
3 changed files with 4 additions and 8 deletions

View File

@ -4,7 +4,7 @@ go-sqlite3
DESCRIPTION DESCRIPTION
----------- -----------
sqlite3 driver for go that using exp/sql sqlite3 driver for go that using database/sql
LICENSE LICENSE
------- -------

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"exp/sql" "database/sql"
"fmt" "fmt"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
"os" "os"

View File

@ -20,8 +20,8 @@ _sqlite3_bind_blob(sqlite3_stmt *stmt, int n, void *p, int np) {
import "C" import "C"
import ( import (
"errors" "errors"
"exp/sql" "database/sql"
"exp/sql/driver" "database/sql/driver"
"unsafe" "unsafe"
) )
@ -228,10 +228,6 @@ type SQLiteRows struct {
} }
func (rc *SQLiteRows) Close() error { 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 return nil
} }