Commit a7d28e20 authored by igor@rurik.mysql.com's avatar igor@rurik.mysql.com

olap.result:

  Fixed bug #10982.
item.cc:
  Fixed bug #10982. In the function Item_ref::val_decimal
  by mistake the method Item_ref::val_decimal was used
  instead of Item_ref::val_decimal_result.
parent 13351aae
...@@ -503,7 +503,7 @@ a+1 ...@@ -503,7 +503,7 @@ a+1
NULL NULL
SELECT a+SUM(a) FROM t1 GROUP BY a WITH ROLLUP; SELECT a+SUM(a) FROM t1 GROUP BY a WITH ROLLUP;
a+SUM(a) a+SUM(a)
3 2
4 4
NULL NULL
SELECT a, a+1 as b FROM t1 GROUP BY a WITH ROLLUP HAVING b > 2; SELECT a, a+1 as b FROM t1 GROUP BY a WITH ROLLUP HAVING b > 2;
......
...@@ -4358,7 +4358,7 @@ bool Item_ref::get_date(TIME *ltime,uint fuzzydate) ...@@ -4358,7 +4358,7 @@ bool Item_ref::get_date(TIME *ltime,uint fuzzydate)
my_decimal *Item_ref::val_decimal(my_decimal *decimal_value) my_decimal *Item_ref::val_decimal(my_decimal *decimal_value)
{ {
my_decimal *val= (*ref)->val_decimal(decimal_value); my_decimal *val= (*ref)->val_decimal_result(decimal_value);
null_value= (*ref)->null_value; null_value= (*ref)->null_value;
return val; return val;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment