diff options
author | Igor Babaev <igor@askmonty.org> | 2011-07-20 21:55:55 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-07-20 21:55:55 -0700 |
commit | 2e8542f4620fd64e65eb6e41122bbe166c242a01 (patch) | |
tree | 1b19d7e54e2415fd9aba043b07c1b5d698d6bc3c /sql/item_sum.h | |
parent | 6dc1cdc2057121d8a10782fc5261e4ea9650a7ab (diff) | |
download | mariadb-git-2e8542f4620fd64e65eb6e41122bbe166c242a01.tar.gz |
Fixed LP bug #791761.
An aggregating query over an empty set of a join of two tables
with a rejecting HAVING clause erroneously could return a row.
It could happen in the cases when the optimizer made a conclusion
that the aggregating set was empty.
Wrong results were produced because the server missed initial
setting for aggregation functions in the mentioned cases.
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index 7b6bdbabf7f..0d557a030d8 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -388,6 +388,7 @@ public: { return trace_unsupported_by_check_vcol_func_processor(func_name()); } + bool clear_sum_processor(uchar *arg) { clear(); return 0; } }; |