Django

Code

Ticket #7176 (closed: wontfix)

Opened 6 days ago

Last modified 6 days ago

HAVING clauses are not generated

Reported by: insin Assigned to: nobody
Component: Core framework Version: SVN
Keywords: Cc:
Triage Stage: Unreviewed Has patch: 0
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

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?

Attachments

Change History

05/05/08 20:29:29 changed by russellm

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to wontfix.
  • needs_tests changed.
  • needs_docs changed.

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.


Add/Change #7176 (HAVING clauses are not generated)




Change Properties
Action