Changes between Initial Version and Version 2 of Ticket #31830


Ignore:
Timestamp:
Jul 26, 2020, 10:28:49 PM (4 years ago)
Author:
zt_initech
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31830 – Description

    initial v2  
    11When 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.
    22
    3 I have a testcase I'll push to github when I have a ticket number.
     3This is the testcase: ​https://github.com/zt-initech/django/blob/ticket_31830/tests/expressions/tests.py#L1572
     4
     5Should I add the testcase on top of branch master? Should I do a github pull request?
    46
    57This happens with sqlite and postgresql (AFAIK, does not depend on database type).
Back to Top