#28900: QuerySet.values() and values_list() for compound queries fails with
annotation.
-------------------------------------+-------------------------------------
     Reporter:  elliott-omosheye     |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.11
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  union, values        |             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:"5d2a0c51d459379447563af3789a6d941ca4947c" 5d2a0c5]:
 {{{#!CommitTicketReference repository=""
 revision="5d2a0c51d459379447563af3789a6d941ca4947c"
 [5.2.x] Fixed #36301 -- Fixed select_for_update(of) crash when using
 values()/values_list().

 Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a which allowed for
 annotations to be SELECT'ed before model field references through
 values()/values_list() and broke assumptions the select_for_update(of)
 table infererence logic had about model fields always being first.

 Refs #28900.

 Thanks OutOfFocus4 for the report and Sarah for the test.

 Backport of 71a19a0e475165dbc14c1fe02f552013ee670e4c from main
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/28900#comment:31>
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 visit 
https://groups.google.com/d/msgid/django-updates/01070196123b2016-34c698ed-4ef0-42e4-85b4-ed99c9d9b254-000000%40eu-central-1.amazonses.com.

Reply via email to