mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
[1.7.x] Documentation fixes for the select_for_update change.
Refs #22343; thanks Tim Graham for the fixes.
Backport of 59b1d30 from master
This commit is contained in:
@@ -1378,7 +1378,7 @@ do not support ``nowait``, such as MySQL, will cause a
|
||||
:exc:`~django.db.DatabaseError` to be raised. This is in order to prevent code
|
||||
unexpectedly blocking.
|
||||
|
||||
Executing a queryset with ``select_for_update`` in autocommit mode is
|
||||
Evaluating a queryset with ``select_for_update`` in autocommit mode is
|
||||
an error because the rows are then not locked. If allowed, this would
|
||||
facilitate data corruption, and could easily be caused by calling,
|
||||
outside of any transaction, code that expects to be run in one.
|
||||
|
||||
Reference in New Issue
Block a user