diff options
author | unknown <ramil@mysql.com> | 2005-11-22 18:29:46 +0400 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-11-22 18:29:46 +0400 |
commit | 4e846a3d274357de741aa8c53f6eeba04aa00fc9 (patch) | |
tree | 636836023b7746f26e84336aa50f7cb2d83ab664 /sql/item_sum.h | |
parent | ac5159a86a4d38fc43ca43f5ec804e3f19574f15 (diff) | |
download | mariadb-git-4e846a3d274357de741aa8c53f6eeba04aa00fc9.tar.gz |
Fix for bug #10966: Variance functions return wrong data type.
sql/item_sum.cc:
Fix for bug #10966: Variance functions return wrong data type.
Always return Field_double if no grouping.
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r-- | sql/item_sum.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h index 87cc248e5e4..7340dc78c66 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -481,7 +481,7 @@ public: { 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; } + enum Item_result result_type () const { return REAL_RESULT; } }; class Item_sum_std; |