aboutsummaryrefslogtreecommitdiff
path: root/_example/hook
diff options
context:
space:
mode:
authorPhilip O'Toole <philip.otoole@yahoo.com>2016-02-23 01:18:14 -0500
committerPhilip O'Toole <philip.otoole@yahoo.com>2016-02-23 01:18:14 -0500
commit3e97a4ca68500045276a2ba7051740bd53e40d06 (patch)
treed984cc8023dffd95fd37fc6ed293ba80f973592a /_example/hook
parentMerge pull request #134 from antoine-lizee/patch-1 (diff)
parentMerge pull request #267 from ianlancetaylor/go16 (diff)
downloadgolite-3e97a4ca68500045276a2ba7051740bd53e40d06.tar.gz
golite-3e97a4ca68500045276a2ba7051740bd53e40d06.tar.xz
Merge pull request #1 from mattn/master
Bring master up-to-date
Diffstat (limited to '_example/hook')
-rw-r--r--_example/hook/hook.go14
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)
}