diff options
author | unknown <bell@sanja.is.com.ua> | 2005-07-02 16:12:32 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-07-02 16:12:32 +0300 |
commit | be515e075cf9f08d2249c2d3c4d6048bf7befe29 (patch) | |
tree | 5eb43e708b0431cf6818939cc42a1bcd5aa59a11 /sql/item_sum.h | |
parent | 1960fbcf3d9dae7eb08833bdcf5b898224c2b817 (diff) | |
download | mariadb-git-be515e075cf9f08d2249c2d3c4d6048bf7befe29.tar.gz |
fixed var_samp printing (BUG#10651)
mysql-test/r/view.result:
Using var_samp with view (BUG#10651)
mysql-test/t/view.test:
Using var_samp with view (BUG#10651)
sql/item_sum.h:
fixed var_samp printing
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index b9a90ee5de5..58cc14c2d31 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -479,7 +479,8 @@ public: Item *result_item(Field *field) { return new Item_variance_field(this); } void no_rows_in_result() {} - const char *func_name() const { return "variance("; } + const char *func_name() const + { return sample ? "var_samp(" : "variance("; } Item *copy_or_same(THD* thd); Field *create_tmp_field(bool group, TABLE *table, uint convert_blob_length); enum Item_result result_type () const { return hybrid_type; } |