mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 00:35:32 +02:00
5.5 merge
This commit is contained in:
commit
d9c01e4b4a
159 changed files with 2564 additions and 454 deletions
|
|
@ -1564,10 +1564,9 @@ String *Item_temporal_hybrid_func::val_str_ascii(String *str)
|
|||
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, ulonglong fuzzy_date)
|
||||
{
|
||||
longlong value=args[0]->val_int();
|
||||
if (args[0]->null_value)
|
||||
return (null_value= 1);
|
||||
if ((fuzzy_date & TIME_NO_ZERO_DATE) && value == 0)
|
||||
return (null_value= 1);
|
||||
if ((null_value= (args[0]->null_value ||
|
||||
((fuzzy_date & TIME_NO_ZERO_DATE) && value == 0))))
|
||||
return true;
|
||||
bzero(ltime, sizeof(MYSQL_TIME));
|
||||
if (get_date_from_daynr((long) value, <ime->year, <ime->month,
|
||||
<ime->day))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue