mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #33374 -- Adjusted full match condition handling.
Adjusting WhereNode.as_sql() to raise an exception when encoutering a full match just like with empty matches ensures that all case are explicitly handled.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4b702c832c
commit
76e37513e2
@@ -42,6 +42,17 @@ Django core exception classes are defined in ``django.core.exceptions``.
|
||||
return any results. Most Django projects won't encounter this exception,
|
||||
but it might be useful for implementing custom lookups and expressions.
|
||||
|
||||
``FullResultSet``
|
||||
-----------------
|
||||
|
||||
.. exception:: FullResultSet
|
||||
|
||||
.. versionadded:: 4.2
|
||||
|
||||
``FullResultSet`` may be raised during query generation if a query will
|
||||
match everything. Most Django projects won't encounter this exception, but
|
||||
it might be useful for implementing custom lookups and expressions.
|
||||
|
||||
``FieldDoesNotExist``
|
||||
---------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user