From 2a6b4e65214ff60ee50b14fb33916a2b58e9fcbe Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 11 Apr 2017 18:52:53 +0300 Subject: Updated docs after changing select_for_update() to raise NotSupportedError. Follow up to 054a44d6f0f75395bd02a21e31ea904a24750a2b. --- docs/ref/databases.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/ref/databases.txt') diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 42e335c9c6..7960688202 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -569,7 +569,8 @@ 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 ``DatabaseError`` will be raised. +``nowait=True`` or ``skip_locked=True``, then a +:exc:`~django.db.NotSupportedError` is raised. Automatic typecasting can cause unexpected results -------------------------------------------------- -- cgit v1.3