Skip to content

Commit ccce84f

Browse files
authored
Merge pull request VividCortex#103 from eliben/patch-3
Fix reference to 'db' var
2 parents deb7987 + 07f6fad commit ccce84f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: modifying.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ code. Bad things might result:
8484
* You could believe you're executing queries on a single connection, inside of a transaction, when in reality Go has created several connections for you invisibly and some statements aren't part of the transaction.
8585

8686
While you are working inside a transaction you should be careful not to make
87-
calls to the `Db` variable. Make all of your calls to the `Tx` variable that you
88-
created with `db.Begin()`. The `Db` is not in a transaction, only the `Tx` is.
87+
calls to the `db` variable. Make all of your calls to the `Tx` variable that you
88+
created with `db.Begin()`. `db` is not in a transaction, only the `Tx` object is.
8989
If you make further calls to `db.Exec()` or similar, those will happen outside
9090
the scope of your transaction, on other connections.
9191

0 commit comments

Comments
 (0)