#36288: Regression in values_list() with duplicated field names
-------------------------------------+-------------------------------------
     Reporter:  Claude Paroz         |                    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 Sarah Boyce <42296566+sarahboyce@…>):

 In [changeset:"b97af5e696b235876c1a1c8d8a704580f2aeabc2" b97af5e]:
 {{{#!CommitTicketReference repository=""
 revision="b97af5e696b235876c1a1c8d8a704580f2aeabc2"
 [5.2.x] Fixed #36288 -- Addressed improper handling of duplicates in
 values_list().

 Now that selected aliases are stored in sql.Query.selected: dict[str, Any]
 the values_list() method must ensures that duplicate field name references
 are
 assigned unique aliases.

 Refs #28900.

 Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a.

 Thanks Claude for the report.

 Backport of 21f8be76d43aa1ee5ae41c1e0a428cfea1f231c1 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36288#comment:7>
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/0107019623acd2f1-947d9a99-7be4-4420-af20-4f10593a9173-000000%40eu-central-1.amazonses.com.

Reply via email to