mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
after-merge fixup.
- have to explicitly set null_value.
This commit is contained in:
parent
3ea5628b11
commit
8639c18f4d
1 changed files with 4 additions and 0 deletions
|
@ -3371,7 +3371,11 @@ bool Item_func_last_day::get_date(TIME *ltime, uint fuzzy_date)
|
|||
{
|
||||
if (get_arg0_date(ltime, fuzzy_date & ~TIME_FUZZY_DATE) ||
|
||||
(ltime->month == 0))
|
||||
{
|
||||
null_value= 1;
|
||||
return 1;
|
||||
}
|
||||
null_value= 0;
|
||||
uint month_idx= ltime->month-1;
|
||||
ltime->day= days_in_month[month_idx];
|
||||
if ( month_idx == 1 && calc_days_in_year(ltime->year) == 366)
|
||||
|
|
Loading…
Reference in a new issue