Commit 76013311 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: Item_cache_temporal::get_date() didn't set null_value

this is a 10.3 version of 885edc4f
parent 7a903784
......@@ -10125,7 +10125,7 @@ bool Item_cache_temporal::get_date(MYSQL_TIME *ltime, ulonglong fuzzydate)
if (!has_value())
{
bzero((char*) ltime,sizeof(*ltime));
return true;
return (null_value= true);
}
unpack_time(value, ltime, mysql_timestamp_type());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment