dbms: Aggregator: fixed error [#CONV-8366].

This commit is contained in:
Alexey Milovidov 2013-09-02 20:28:18 +00:00
parent 8c4ed5a651
commit e9551970fb

View File

@ -490,7 +490,7 @@ Block Aggregator::convertToBlock(AggregatedDataVariants & data_variants, bool se
{
AggregatedDataWithoutKey & data = data_variants.without_key;
if (separate_totals)
if (with_totals && separate_totals)
{
for (size_t i = 0; i < aggregates_size; ++i)
{