Opened 7 years ago

Closed 7 years ago

#7176 closed (wontfix)

HAVING clauses are not generated

Reported by: insin 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 7 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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