mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
item_func.cc:
Fixed compiler warnings.
This commit is contained in:
parent
6ca4db2607
commit
6bef06edfa
1 changed files with 3 additions and 3 deletions
|
@ -2328,7 +2328,7 @@ double Item_func_min_max::val_real()
|
|||
double value=0.0;
|
||||
if (compare_as_dates)
|
||||
{
|
||||
ulonglong result;
|
||||
ulonglong result= 0;
|
||||
(void)cmp_datetimes(&result);
|
||||
return (double)result;
|
||||
}
|
||||
|
@ -2355,7 +2355,7 @@ longlong Item_func_min_max::val_int()
|
|||
longlong value=0;
|
||||
if (compare_as_dates)
|
||||
{
|
||||
ulonglong result;
|
||||
ulonglong result= 0;
|
||||
(void)cmp_datetimes(&result);
|
||||
return (longlong)result;
|
||||
}
|
||||
|
@ -2384,7 +2384,7 @@ my_decimal *Item_func_min_max::val_decimal(my_decimal *dec)
|
|||
|
||||
if (compare_as_dates)
|
||||
{
|
||||
ulonglong value;
|
||||
ulonglong value= 0;
|
||||
(void)cmp_datetimes(&value);
|
||||
ulonglong2decimal(value, dec);
|
||||
return dec;
|
||||
|
|
Loading…
Reference in a new issue