diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2012-01-05 00:45:31 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2012-01-05 00:45:31 +0000 |
| commit | 8312b85c979c8ddd314abe0a7edb6cb37fe3e3ac (patch) | |
| tree | 888b276d5d3a5fa34daf7f21d404ddb3fcefed68 /docs | |
| parent | bc63ba700a0ae3ba435c267789d8c2e3931016df (diff) | |
Added support for savepoints to the MySQL DB backend.
MySQL provides the savepoint functionality starting with version 5.0.3
when using the MyISAM storage engine.
Thanks lamby for the report and patch.
Fixes #15507.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.4.txt | 3 | ||||
| -rw-r--r-- | docs/topics/db/transactions.txt | 13 |
2 files changed, 11 insertions, 5 deletions
diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index 0cb30d633a..de7afc83c3 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -553,6 +553,9 @@ Django 1.4 also includes several smaller improvements worth noting: password reset mechanism and making it available is now much easier. For details, see :ref:`auth_password_reset`. +* The MySQL database backend can now make use of the savepoint feature + implemented by MySQL version 5.0.3 or newer with the InnoDB storage engine. + Backwards incompatible changes in 1.4 ===================================== diff --git a/docs/topics/db/transactions.txt b/docs/topics/db/transactions.txt index b2ee26d6b0..6e6754a9d8 100644 --- a/docs/topics/db/transactions.txt +++ b/docs/topics/db/transactions.txt @@ -225,11 +225,14 @@ transaction middleware, and only modify selected functions as needed. Savepoints ========== -A savepoint is a marker within a transaction that enables you to roll back -part of a transaction, rather than the full transaction. Savepoints are -available to the PostgreSQL 8 and Oracle backends. Other backends will -provide the savepoint functions, but they are empty operations - they won't -actually do anything. +A savepoint is a marker within a transaction that enables you to roll back part +of a transaction, rather than the full transaction. Savepoints are available to +the PostgreSQL 8, Oracle and MySQL (version 5.0.3 and newer, when using the +InnoDB storage engine) backends. Other backends will provide the savepoint +functions, but they are empty operations - they won't actually do anything. + +.. versionchanged:: 1.4 + Savepoint support when using the MySQL backend was added in Django 1.4 Savepoints aren't especially useful if you are using the default ``autocommit`` behavior of Django. However, if you are using |
