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:
Anssi Kääriäinen 2014-12-23 15:16:56 +02:00 committed by Tim Graham
parent 2be621e44c
commit afe0bb7b13
6 changed files with 75 additions and 90 deletions

View file

@ -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)