mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
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
This commit is contained in:
@@ -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
|
||||
=====================================
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user