#26434: Inconsistent results of QuerySet.count() when ordering is not a subset 
of
explicit grouping.
-------------------------------------+-------------------------------------
     Reporter:  kamandol             |                    Owner:  Michal
                                     |  Mládek
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  postgresql queryset  |             Triage Stage:  Accepted
  count annotate aggreagate          |
  order_by                           |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):

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

Comment:

 In [changeset:"43933a1dca07047e95ec990d9289d0212668009e" 43933a1d]:
 {{{#!CommitTicketReference repository=""
 revision="43933a1dca07047e95ec990d9289d0212668009e"
 Reverted "Fixed #26434 -- Removed faulty clearing of ordering field when
 missing from explicit grouping."

 This reverts commit ea3a71c2d09f8281d8a50ed20e40e1fb13db5cd9.

 The implementation was flawed, as self.group_by contains Cols, not
 aliases.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/26434#comment:33>
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/0107019a2b79fa9c-7fc840d4-b2bb-4ef4-92af-8a3d76a99b72-000000%40eu-central-1.amazonses.com.

Reply via email to