Skip to content

Commit d3334c1

Browse files
committed
Use code
1 parent 1704ea5 commit d3334c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backup.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (c *SQLiteConn) Backup(dest string, conn *SQLiteConn, src string) (*Backup,
3131
// function returns SQLITE_DONE (Code 101)
3232
func (b *Backup) Step(p int) (bool, error) {
3333
ret := C.sqlite3_backup_step(b.b, C.int(p))
34-
if ret == 101 {
34+
if ret == C.SQLITE_DONE {
3535
return true, nil
3636
} else if ret != 0 {
3737
return false, Error{Code: ErrNo(ret)}

0 commit comments

Comments
 (0)