mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +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:
parent
3a9a4570ef
commit
941f947bfd
3 changed files with 18 additions and 19 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue