#36301: select_for_update(of) crash when used with values_list since Django 5.2 
on
Postgres
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  5.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:"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/36301#comment:5>
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/01070196123b1fdc-b9ef75e9-d719-40d1-aa67-2f51ba706ba0-000000%40eu-central-1.amazonses.com.

Reply via email to