diff options
| author | Ran Benita <ran234@gmail.com> | 2017-06-29 23:00:15 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-29 16:00:15 -0400 |
| commit | b9f7dce84b7ab5e198129030eae6c1a4aec83d24 (patch) | |
| tree | 8f350d29029e977c48107db898a6994c38cbfba4 /docs/ref/databases.txt | |
| parent | 2d18c60fbb1efcc980adfe875dadb02c749da509 (diff) | |
Fixed #28010 -- Added FOR UPDATE OF support to QuerySet.select_for_update().
Diffstat (limited to 'docs/ref/databases.txt')
| -rw-r--r-- | docs/ref/databases.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 45b1772514..69921f437b 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -629,9 +629,9 @@ both MySQL and Django will attempt to convert the values from UTC to local time. Row locking with ``QuerySet.select_for_update()`` ------------------------------------------------- -MySQL does not support the ``NOWAIT`` and ``SKIP LOCKED`` options to the -``SELECT ... FOR UPDATE`` statement. If ``select_for_update()`` is used with -``nowait=True`` or ``skip_locked=True``, then a +MySQL does not support the ``NOWAIT``, ``SKIP LOCKED``, and ``OF`` options to +the ``SELECT ... FOR UPDATE`` statement. If ``select_for_update()`` is used +with ``nowait=True``, ``skip_locked=True``, or ``of`` then a :exc:`~django.db.NotSupportedError` is raised. Automatic typecasting can cause unexpected results |
