diff options
author | ram@gw.mysql.r18.ru <> | 2004-05-05 16:06:01 +0500 |
---|---|---|
committer | ram@gw.mysql.r18.ru <> | 2004-05-05 16:06:01 +0500 |
commit | 949c01bfa221fab06856e44866a6061f985f6d1f (patch) | |
tree | 3e92d79cf977b8227075452a38bf4357ea176d40 /sql/item_sum.h | |
parent | 104fdf607d312bb13f24063d28d993243bf24ca2 (diff) | |
download | mariadb-git-949c01bfa221fab06856e44866a6061f985f6d1f.tar.gz |
a fix (Bug #3435: STDDEV|VARIANCE(constant) returns constant if no rows)
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 9593c8ddbba..d7753303f55 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -351,6 +351,7 @@ class Item_sum_variance : public Item_sum_num void update_field(); Item *result_item(Field *field) { return new Item_variance_field(this); } + void no_rows_in_result() {} const char *func_name() const { return "variance"; } Item *copy_or_same(THD* thd); }; |