#29338: Can't use OuterRef in union Subquery
-------------------------------------+-------------------------------------
     Reporter:  Matthew Pava         |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  2.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Matthew Pava):

 Yes, it is possible to generate SQL for this query.  I tried it myself.
 ...I suppose "sensible" is a subjective term.

 I just tried using an `__in` lookup, but that was getting to be a
 struggle.

 Maybe `Subquery` wasn't originally intended to be used with `unions`, but
 I think it would be a good feature to have, especially in the discussion
 of CTEs (common table expressions).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29338#comment:2>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.58d9956decc8a87766906d5d15d391ff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to