diff options
author | Simon Charette <charette.s@gmail.com> | 2022-11-06 11:19:33 -0500 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-11-07 20:23:53 +0100 |
commit | 76e37513e22f4d9a01c7f15eee36fe44388e6670 (patch) | |
tree | 575decec7547c3c128857b0444f342452865a0f9 /django/core/exceptions.py | |
parent | 4b702c832cd550fe682ef37a69e93866815b9123 (diff) | |
download | django-76e37513e22f4d9a01c7f15eee36fe44388e6670.tar.gz |
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.
Diffstat (limited to 'django/core/exceptions.py')
-rw-r--r-- | django/core/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/core/exceptions.py b/django/core/exceptions.py index 7be4e16bc5..646644f3e0 100644 --- a/django/core/exceptions.py +++ b/django/core/exceptions.py @@ -233,6 +233,12 @@ class EmptyResultSet(Exception): pass +class FullResultSet(Exception): + """A database query predicate is matches everything.""" + + pass + + class SynchronousOnlyOperation(Exception): """The user tried to call a sync-only function from an async context.""" |