diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-05-05 16:06:01 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-05-05 16:06:01 +0500 |
commit | 393ed84c9a0cd98479aa8bf8c4de1236740639ea (patch) | |
tree | 3e92d79cf977b8227075452a38bf4357ea176d40 /sql/item_sum.h | |
parent | 575541b9f755425eaeb07babfa07b6fd30f6d5d1 (diff) | |
download | mariadb-git-393ed84c9a0cd98479aa8bf8c4de1236740639ea.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); }; |