Opened 8 years ago

Closed 8 years ago

#7176 closed (wontfix)

HAVING clauses are not generated

Reported by: Jonathan Buchanan Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

django.db.models.sql.query.Query has a "having" attribute (a list) which isn't used outside of the init and clone methods - should this result in a HAVING clause being generated whenever a GROUP BY clause is being generated?

Change History (1)

comment:1 Changed 8 years ago by Russell Keith-Magee

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

GROUP BY and HAVING are included in the Query class for completeness; there isn't really a way to use them at the moment unless you are hand crafting queries. Fully utilizing these pieces of Query is part of a much bigger problem - implementing aggregates in Django's ORM (See ticket #3566). This is the subject of a GSOC project this year.

Note: See TracTickets for help on using tickets.
Back to Top