Commit 62e95943 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-5374 main.func_time fails with valgrind warning

"Conditional jump or move depends on uninitialised"
in Item_time_typecast::get_date.

Adding "null_value" into the debug assert condition.
parent a3b99778
...@@ -159,7 +159,8 @@ public: ...@@ -159,7 +159,8 @@ public:
inline bool get_arg0_time(MYSQL_TIME *ltime) inline bool get_arg0_time(MYSQL_TIME *ltime)
{ {
null_value= args[0]->get_time(ltime); null_value= args[0]->get_time(ltime);
DBUG_ASSERT(ltime->time_type != MYSQL_TIMESTAMP_TIME || ltime->day == 0); DBUG_ASSERT(null_value ||
ltime->time_type != MYSQL_TIMESTAMP_TIME || ltime->day == 0);
return null_value; return null_value;
} }
bool is_null() { bool is_null() {
......
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