mirror of
https://github.com/django/django.git
synced 2025-08-08 12:58:37 +00:00
Fixed #24268 -- removed Query.having
Instead of splitting filter clauses to where and having parts before adding them to query.where or query.having, add all filter clauses to query.where, and when compiling the query split the where to having and where parts.
This commit is contained in:
parent
2be621e44c
commit
afe0bb7b13
6 changed files with 75 additions and 90 deletions
|
@ -35,6 +35,8 @@ class QueryWrapper(object):
|
|||
A type that indicates the contents are an SQL fragment and the associate
|
||||
parameters. Can be used to pass opaque data to a where-clause, for example.
|
||||
"""
|
||||
contains_aggregate = False
|
||||
|
||||
def __init__(self, sql, params):
|
||||
self.data = sql, list(params)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue