Commit 522cd3c7 authored by Alexander Barkov's avatar Alexander Barkov

Fixing compilation failure on Windows (cannot compare "bool" and "my_bool" directly, cast needed)

parent d2bba4ce
...@@ -2197,7 +2197,7 @@ class Item_udf_func :public Item_func ...@@ -2197,7 +2197,7 @@ class Item_udf_func :public Item_func
{ {
my_bool tmp_null_value; my_bool tmp_null_value;
m_ptr= udf->val_decimal(&tmp_null_value, &m_buffer); m_ptr= udf->val_decimal(&tmp_null_value, &m_buffer);
DBUG_ASSERT(is_null() == tmp_null_value); DBUG_ASSERT(is_null() == (tmp_null_value != 0));
func->null_value= is_null(); func->null_value= 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