Commit 50f9ae92 authored by Davi Arnaut's avatar Davi Arnaut

Bug#51289: double Item_cache_decimal::val_real() is broken

Fix up function return value, it must return a double.
parent 0c07d7c4
......@@ -7159,7 +7159,7 @@ double Item_cache_decimal::val_real()
DBUG_ASSERT(fixed);
double res;
if (!value_cached && !cache_value())
return NULL;
return 0.0;
my_decimal2double(E_DEC_FATAL_ERROR, &decimal_value, &res);
return res;
}
......
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