django__django-15382
filter on exists-subquery with empty queryset removes whole WHERE block
Verdict: the issue text repeats lines of the gold patch (Tier C).
Since Exists encapsulate its negation logic (see __invert__) it should catch EmptyResultSet when raised by its super() call in as_sql and return an always true predicate (e.g. 1=1).
4 of 4 added patch lines appear in the issue or discussion.
All SWE-bench Verified tasks · more django/django tasks · How the check works