#31415: Nested OuterRefs produce error when used as argument to Left
-------------------------------------+-------------------------------------
     Reporter:  Ben Nace             |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  3.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 Ben Nace):

 Replying to [comment:1 Simon Charette]:
 > Pretty sure this is a duplicate of #29214 (see
 [https://code.djangoproject.com/ticket/29214#comment:12 comment:12]). Just
 like `F` the `OuterRef` expression doesn't support `__` join references,
 the fact `Left` and nested `OuterRef` are used here are unrelated I
 believe.

 #29214 [https://code.djangoproject.com/ticket/29214#comment:12 comment:12]
 refers to joins inside F in UPDATE queries, not in general. The
 [https://docs.djangoproject.com/en/3.0/topics/db/queries/#using-f
 -expressions-in-filters documentation] states
  You can also use the double underscore notation to span relationships in
 an F() object. An F() object with a double underscore will introduce any
 joins needed to access the related object.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31415#comment:3>
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/071.5397363b852bced0a76d67aa6fe5db59%40djangoproject.com.

Reply via email to