diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2012-04-21 22:57:32 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2012-04-21 22:57:32 +0000 |
| commit | 839a71b0a586b1c274546ac3ed8e599be8db10b9 (patch) | |
| tree | bca082668516b129552e91239032926cf3ddd374 /docs | |
| parent | 143305126b9ec3f6b7771d10f0642ed3f3f6a3bd (diff) | |
[1.4.X] Added documentation notes about lack of database savepoints support when using MySQL+MyISAM.
Refs #15507 and r17341.
Backport of r17923.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/databases.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index f0b485fc97..5440f488e2 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -148,6 +148,8 @@ procedures, but Django currently doesn't use stored procedures. .. _MySQL 4.1: http://dev.mysql.com/doc/refman/4.1/en/index.html .. _MySQL 5.0: http://dev.mysql.com/doc/refman/5.0/en/index.html +.. _mysql-storage-engines: + Storage engines --------------- @@ -360,6 +362,21 @@ via the :class:`~django.db.models.Options.db_table` parameter. .. _known issues: http://bugs.mysql.com/bug.php?id=48875 +Savepoints +---------- + +Both the Django ORM and MySQL (when using the InnoDB :ref:`storage engine +<mysql-storage-engines>`) support database :ref:`savepoints +<topics-db-transactions-savepoints>`, but this feature wasn't available in +Django until version 1.4 when such supports was added. + +If you use the MyISAM storage engine please be aware of the fact that you will +receive database-generated errors if you try to use the :ref:`savepoint-related +methods of the transactions API <topics-db-transactions-savepoints>`. The reason +for this is that detecting the storage engine of a MySQL database/table is an +expensive operation so it was decided it isn't worth to dynamically convert +these methods in no-op's based in the results of such detection. + Notes on specific fields ------------------------ |
