mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 11:10:11 +03:00
Merge 10159b61bf
into 45a9200ff6
This commit is contained in:
commit
501d340516
|
@ -388,7 +388,7 @@ class QuerySet(object):
|
||||||
sql += '\nWHERE ' + self.conditions_as_sql(prewhere=False)
|
sql += '\nWHERE ' + self.conditions_as_sql(prewhere=False)
|
||||||
|
|
||||||
if self._grouping_fields:
|
if self._grouping_fields:
|
||||||
sql += '\nGROUP BY %s' % comma_join('`%s`' % field for field in self._grouping_fields)
|
sql += '\nGROUP BY %s' % comma_join('%s' % field for field in self._grouping_fields)
|
||||||
|
|
||||||
if self._grouping_with_totals:
|
if self._grouping_with_totals:
|
||||||
sql += ' WITH TOTALS'
|
sql += ' WITH TOTALS'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user