mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 11:10:11 +03:00
use HAVING
This commit is contained in:
parent
8959a84fed
commit
274e0103fa
|
@ -394,7 +394,7 @@ class QuerySet(object):
|
|||
sql += ' WITH TOTALS'
|
||||
|
||||
if self._having:
|
||||
sql += '\nhaving ' + self.having_as_sql()
|
||||
sql += '\nHAVING ' + self.having_as_sql()
|
||||
|
||||
if self._order_by:
|
||||
sql += '\nORDER BY ' + self.order_by_as_sql()
|
||||
|
|
Loading…
Reference in New Issue
Block a user