diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-12-21 15:19:29 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-12-21 15:19:29 +0100 |
| commit | 653a3a4e18134803bf9cbe8668bcdd678844c995 (patch) | |
| tree | 280b4ae970ce261085bb3e0c231e3929b9185894 /docs | |
| parent | 07728a2c2c78b030b7de9c6b20ef028f82d6134a (diff) | |
| parent | 27f68f8659a648cc9ed3e71f690959ed8a130c5a (diff) | |
Merge pull request #3763 from dcramer/patch-2
Correct scoping of savepoint example
Diffstat (limited to 'docs')
| -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 5fb66ca684..66ef6d42e9 100644 --- a/docs/topics/db/transactions.txt +++ b/docs/topics/db/transactions.txt @@ -492,8 +492,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: |
