aboutsummaryrefslogtreecommitdiff
path: root/third_party/go-sqlite3/_example/hook/hook.go
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/go-sqlite3/_example/hook/hook.go')
-rw-r--r--third_party/go-sqlite3/_example/hook/hook.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/third_party/go-sqlite3/_example/hook/hook.go b/third_party/go-sqlite3/_example/hook/hook.go
index 59f8cd4..3059f9e 100644
--- a/third_party/go-sqlite3/_example/hook/hook.go
+++ b/third_party/go-sqlite3/_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)
}