#32651: Combining Q with a Q containing exists crashes
-------------------------------------+-------------------------------------
               Reporter:  Jaap Roes  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  3.2
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I'm in the process of upgrading a project from Django 3.1 to 3.2 and one
 of the tests keeps crashing. I reduced the code to the following
 statement:

 {{{
 Q() & Q(Exists(Book.objects.all()))
 }}}

 This worked correctly in Django 3.1.

 I found this ticket: #32548 and can confirm (that after some struggles
 related to incompatibilities in 3rd party packges) I was able to get the
 tests to pass on Django main. Is it possible to backport the fix to Django
 3.2?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32651>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.8e27df67f2b3abc3ffa83b34a6160b85%40djangoproject.com.

Reply via email to