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
-----------
sqlite3 driver for go that using exp/sql
sqlite3 driver for go that using database/sql
LICENSE
-------

View File

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

View File

@ -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
}