diff options
author | mattn <mattn.jp@gmail.com> | 2014-08-18 18:24:12 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-08-18 18:24:12 +0900 |
commit | b718c29aea8dcb97e5338a220d9eec80af770626 (patch) | |
tree | 72f1b8e45e5b154668aea1c97af22a5e7477063f /backup.go | |
parent | Check parameter count (diff) | |
parent | Add note about license of amalgamation code (diff) | |
download | golite-b718c29aea8dcb97e5338a220d9eec80af770626.tar.gz golite-b718c29aea8dcb97e5338a220d9eec80af770626.tar.xz |
Merge branch 'master' of github.com:mattn/go-sqlite3
Diffstat (limited to 'backup.go')
-rw-r--r-- | backup.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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)} |