workaround on windows. currently, int64 does not work correctly.

This commit is contained in:
mattn 2012-09-12 11:43:37 +09:00
parent 8d4548d72c
commit d05555a677
1 changed files with 3 additions and 1 deletions

View File

@ -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) {