mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 03:05:33 +02:00
Bug#51289: double Item_cache_decimal::val_real() is broken
Fix up function return value, it must return a double.
This commit is contained in:
parent
c7fad393fd
commit
9fc32c2e24
1 changed files with 1 additions and 1 deletions
|
|
@ -7159,7 +7159,7 @@ double Item_cache_decimal::val_real()
|
||||||
DBUG_ASSERT(fixed);
|
DBUG_ASSERT(fixed);
|
||||||
double res;
|
double res;
|
||||||
if (!value_cached && !cache_value())
|
if (!value_cached && !cache_value())
|
||||||
return NULL;
|
return 0.0;
|
||||||
my_decimal2double(E_DEC_FATAL_ERROR, &decimal_value, &res);
|
my_decimal2double(E_DEC_FATAL_ERROR, &decimal_value, &res);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue