From d3334c1381db6a159cac1d2818ab2b543a166ad1 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 18 Aug 2014 16:52:06 +0900 Subject: [PATCH] Use code --- backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.go b/backup.go index ab56961..0e3d6fa 100644 --- a/backup.go +++ b/backup.go @@ -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)}