diff options
author | ramil/ram@ramil.myoffice.izhnet.ru <> | 2007-01-31 12:53:36 +0400 |
---|---|---|
committer | ramil/ram@ramil.myoffice.izhnet.ru <> | 2007-01-31 12:53:36 +0400 |
commit | 30f904eb2d53a50d33a6afcd2dfffbf9eb9d2892 (patch) | |
tree | 2f6f9bd334f5e85e7faaa91f3debf91a9e3f7e89 /sql/item_sum.cc | |
parent | 46b3a3d7dd89d937a292bd3f7e3a3d6c6ea7f41d (diff) | |
parent | 0bd1c03e7ec07a624f77089f7c298a8c9d6a3362 (diff) | |
download | mariadb-git-30f904eb2d53a50d33a6afcd2dfffbf9eb9d2892.tar.gz |
Merge mysql.com:/home/ram/work/b19690/b19690.5.0
into mysql.com:/home/ram/work/b19690/b19690.5.1
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 99053587de5..0471968b701 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -400,7 +400,7 @@ Field *Item_sum::create_tmp_field(bool group, TABLE *table, Field *field; switch (result_type()) { case REAL_RESULT: - field= new Field_double(max_length, maybe_null, name, decimals); + field= new Field_double(max_length, maybe_null, name, decimals, TRUE); break; case INT_RESULT: field= new Field_longlong(max_length, maybe_null, name, unsigned_flag); @@ -1135,7 +1135,7 @@ Field *Item_sum_avg::create_tmp_field(bool group, TABLE *table, field= new Field_new_decimal(max_length, maybe_null, name, decimals, unsigned_flag); else - field= new Field_double(max_length, maybe_null, name, decimals); + field= new Field_double(max_length, maybe_null, name, decimals, TRUE); if (field) field->init(table); return field; @@ -1334,7 +1334,7 @@ Field *Item_sum_variance::create_tmp_field(bool group, TABLE *table, field= new Field_string(sizeof(double)*2 + sizeof(longlong), 0, name, &my_charset_bin); } else - field= new Field_double(max_length, maybe_null, name, decimals); + field= new Field_double(max_length, maybe_null, name, decimals, TRUE); if (field != NULL) field->init(table); |