#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
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"6d0cbe42c3d382e5393d4af48185c546bb0ada1f" 6d0cbe42]:
 {{{
 #!CommitTicketReference repository=""
 revision="6d0cbe42c3d382e5393d4af48185c546bb0ada1f"
 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.
 }}}

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

Reply via email to