summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-04-09 19:07:39 +0500
committerunknown <ram@gw.mysql.r18.ru>2004-04-09 19:07:39 +0500
commit5dcbf248a0a0e23ec9461793fcfb3a201a17b61a (patch)
tree8c2c891bc3a34c13cfda6589cbbfea8655523fa5 /sql/item_sum.h
parenta5d016ecb4e495efde82a6f0484c51bc2d0fa842 (diff)
downloadmariadb-git-5dcbf248a0a0e23ec9461793fcfb3a201a17b61a.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.h1
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);}
};