-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,7 +236,7 @@ pool, _ := sql.Open("mysql", "user:password@tcp(localhost:3306)/db") | |
dbq.Tx(ctx, pool, func(tx interface{}, Q dbq.QFn, E dbq.EFn, txCommit dbq.TxCommit) { | ||
|
||
stmt := dbq.INSERT("table", []string{"name", "age", "created_at"}, 1) | ||
res, err := E(ctx, stmt, nil, "test name", 34, time.Now()) | ||
res, err := E(ctx, pool, stmt, nil, "test name", 34, time.Now()) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
propersam
Author
Collaborator
|
||
if err != nil { | ||
return // Automatic rollback | ||
} | ||
|
This is not correct