mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
MDEV-4804 Date comparing false result
This commit is contained in:
parent
f8af4423b4
commit
c40de1df36
3 changed files with 63 additions and 3 deletions
|
|
@ -3155,12 +3155,12 @@ bool Item_func_coalesce::get_date(MYSQL_TIME *ltime,uint fuzzydate)
|
|||
null_value= 0;
|
||||
for (uint i= 0; i < arg_count; i++)
|
||||
{
|
||||
bool res= args[i]->get_date(ltime, fuzzydate);
|
||||
bool res= args[i]->get_date(ltime, fuzzydate & ~TIME_FUZZY_DATES);
|
||||
if (!args[i]->null_value)
|
||||
return res;
|
||||
}
|
||||
null_value=1;
|
||||
return 1;
|
||||
bzero((char*) ltime,sizeof(*ltime));
|
||||
return null_value|= !(fuzzydate & TIME_FUZZY_DATES);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue