dbms: fixed error in prev. revision [#METR-2944].

This commit is contained in:
Alexey Milovidov 2015-11-21 22:51:47 +03:00
parent 1889600e39
commit 7cf850f194

View File

@ -43,8 +43,8 @@ public:
void addImpl(AggregateDataPtr place, const IColumn & columns_arg, const IColumn & column_max, size_t row_num) const void addImpl(AggregateDataPtr place, const IColumn & columns_arg, const IColumn & column_max, size_t row_num) const
{ {
if (this->data(place).value.changeIfBetter(columns_arg, row_num)) if (this->data(place).value.changeIfBetter(columns_max, row_num))
this->data(place).result.change(column_max, row_num); this->data(place).result.change(columns_arg, row_num);
} }
void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs) const override void merge(AggregateDataPtr place, ConstAggregateDataPtr rhs) const override