forked from mirror/go-sqlite3
workaround on windows. currently, int64 does not work correctly.
This commit is contained in:
parent
8d4548d72c
commit
d05555a677
|
@ -221,7 +221,9 @@ type SQLiteResult struct {
|
|||
}
|
||||
|
||||
func (r *SQLiteResult) LastInsertId() (int64, error) {
|
||||
return int64(C.sqlite3_last_insert_rowid(r.s.c.db)), nil
|
||||
var rr int64
|
||||
rr = int64(C.sqlite3_last_insert_rowid(r.s.c.db))
|
||||
return rr, nil
|
||||
}
|
||||
|
||||
func (r *SQLiteResult) RowsAffected() (int64, error) {
|
||||
|
|
Loading…
Reference in New Issue