#34346: QuerySet ordered by annotation with name used by select_related() field
crashes with AmbiguousColumn.
-------------------------------------+-------------------------------------
     Reporter:  henribru             |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.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
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"278881e37619278789942513916acafaa88d26f3" 278881e3]:
 {{{
 #!CommitTicketReference repository=""
 revision="278881e37619278789942513916acafaa88d26f3"
 Fixed #34346 -- Ordered selected expressions by position.

 Used the same approach as for #34176 by using selected expressions
 position to prevent ambiguous aliases in collisions.

 Thanks henribru for the report.

 Regression in 04518e310d4552ff7595a34f5a7f93487d78a406.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34346#comment:9>
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/010701866d4565fa-f2ed9ee7-ac9b-41b3-a5c6-635367a3f2a2-000000%40eu-central-1.amazonses.com.

Reply via email to