diff options
author | mattn <mattn.jp@gmail.com> | 2015-08-26 01:33:44 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2015-08-26 01:33:44 +0900 |
commit | 897b8800a7d1a93518b87c00e5d1c5d7476f3701 (patch) | |
tree | 609c78bceb318bc82f0f885c990ba6b08db1dcaa | |
parent | Fix test. Close #216 (diff) | |
parent | Fix example to check the correct error value (diff) | |
download | golite-897b8800a7d1a93518b87c00e5d1c5d7476f3701.tar.gz golite-897b8800a7d1a93518b87c00e5d1c5d7476f3701.tar.xz |
Merge pull request #231 from marccampbell/master
Fix example to check the correct error value
-rw-r--r-- | _example/hook/hook.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/_example/hook/hook.go b/_example/hook/hook.go index 59f8cd4..3059f9e 100644 --- a/_example/hook/hook.go +++ b/_example/hook/hook.go @@ -10,12 +10,12 @@ import ( func main() { sqlite3conn := []*sqlite3.SQLiteConn{} sql.Register("sqlite3_with_hook_example", - &sqlite3.SQLiteDriver{ - ConnectHook: func(conn *sqlite3.SQLiteConn) error { - sqlite3conn = append(sqlite3conn, conn) - return nil - }, - }) + &sqlite3.SQLiteDriver{ + ConnectHook: func(conn *sqlite3.SQLiteConn) error { + sqlite3conn = append(sqlite3conn, conn) + return nil + }, + }) os.Remove("./foo.db") os.Remove("./bar.db") @@ -54,7 +54,7 @@ func main() { log.Fatal(err) } - bk.Step(-1) + _, err = bk.Step(-1) if err != nil { log.Fatal(err) } |