aboutsummaryrefslogtreecommitdiff
path: root/backup.go
diff options
context:
space:
mode:
Diffstat (limited to 'backup.go')
-rw-r--r--backup.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/backup.go b/backup.go
index ab56961..4b2a72d 100644
--- a/backup.go
+++ b/backup.go
@@ -1,3 +1,8 @@
+// Copyright (C) 2014 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
+//
+// Use of this source code is governed by an MIT-style
+// license that can be found in the LICENSE file.
+
package sqlite3
/*
@@ -31,7 +36,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)}