diff options
author | ram@gw.mysql.r18.ru <> | 2004-04-09 19:07:39 +0500 |
---|---|---|
committer | ram@gw.mysql.r18.ru <> | 2004-04-09 19:07:39 +0500 |
commit | c8937dbcb767e53cda0b1296d8580bcf60bb5cf9 (patch) | |
tree | 8c2c891bc3a34c13cfda6589cbbfea8655523fa5 /sql/item_sum.h | |
parent | 8219d4ef88f165063aa076480d04c36175f5c296 (diff) | |
download | mariadb-git-c8937dbcb767e53cda0b1296d8580bcf60bb5cf9.tar.gz |
A fix. (Bug #3376: AVG(constant) returns constant if no rows in result set)
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 d3a328be032..6835b1e8fae 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -249,6 +249,7 @@ class Item_sum_avg :public Item_sum_num void update_field(); Item *result_item(Field *field) { return new Item_avg_field(this); } + void no_rows_in_result() {} const char *func_name() const { return "avg"; } unsigned int size_of() { return sizeof(*this);} }; |