Changes between Initial Version and Version 2 of Ticket #31830
- Timestamp:
- Jul 26, 2020, 10:28:49 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31830 – Description
initial v2 1 1 When a queryset count() is called while the queryset has not been evaluated, if the filter has OR and one of the nodes in the OR is Exists and inside the Exists a EmptyResultSet is raised, the other nodes of the OR are not evaluated, the count just decides the EmptyResultSet applies to the outer queryset and returns count == 0. 2 2 3 I have a testcase I'll push to github when I have a ticket number. 3 This is the testcase: https://github.com/zt-initech/django/blob/ticket_31830/tests/expressions/tests.py#L1572 4 5 Should I add the testcase on top of branch master? Should I do a github pull request? 4 6 5 7 This happens with sqlite and postgresql (AFAIK, does not depend on database type).