systemlib
mattn 2014-08-18 16:52:06 +09:00
parent 1704ea522d
commit d3334c1381
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func (c *SQLiteConn) Backup(dest string, conn *SQLiteConn, src string) (*Backup,
// function returns SQLITE_DONE (Code 101)
func (b *Backup) Step(p int) (bool, error) {
ret := C.sqlite3_backup_step(b.b, C.int(p))
if ret == 101 {
if ret == C.SQLITE_DONE {
return true, nil
} else if ret != 0 {
return false, Error{Code: ErrNo(ret)}