#32650: Cannot combine two queryset in a subquery
-------------------------------------+-------------------------------------
     Reporter:  Raffaele Salmaso     |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"48e19bae49f271cccbb8a8f4549c9366b7cecac6" 48e19bae]:
 {{{
 #!CommitTicketReference repository=""
 revision="48e19bae49f271cccbb8a8f4549c9366b7cecac6"
 [3.2.x] Fixed #32650 -- Fixed handling subquery aliasing on queryset
 combination.

 This issue started manifesting itself when nesting a combined subquery
 relying on exclude() since 8593e162c9cb63a6c0b06daf045bc1c21eb4d7c1 but
 sql.Query.combine never properly handled subqueries outer refs in the
 first place, see QuerySetBitwiseOperationTests.test_subquery_aliases()
 (refs #27149).

 Thanks Raffaele Salmaso for the report.

 Backport of 6d0cbe42c3d382e5393d4af48185c546bb0ada1f from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32650#comment:9>
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/066.a54bc80a7dbbaa6ab942965f6bc23be0%40djangoproject.com.

Reply via email to