diff options
| author | David Cramer <dcramer@gmail.com> | 2014-12-20 12:02:26 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-22 07:51:19 -0500 |
| commit | d237aaa9293e61d0cd854450da41ab80df4d4957 (patch) | |
| tree | 7e8a752731c402c3e7f3ad9868f71cc7f573bb2a | |
| parent | 0e3626260df15d7516ece2c8e60898f21f3e5ebb (diff) | |
[1.6.x] Corrected scoping of savepoint example
Backport of 27f68f8659a648cc9ed3e71f690959ed8a130c5a from master
| -rw-r--r-- | docs/topics/db/transactions.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/transactions.txt b/docs/topics/db/transactions.txt index 887d7f47d4..4affce3628 100644 --- a/docs/topics/db/transactions.txt +++ b/docs/topics/db/transactions.txt @@ -522,8 +522,8 @@ you can roll back the single offending operation, rather than the entire transaction. For example:: a.save() # Succeeds, and never undone by savepoint rollback + sid = transaction.savepoint() try: - sid = transaction.savepoint() b.save() # Could throw exception transaction.savepoint_commit(sid) except IntegrityError: |
