Commit e5ceda0a authored by unknown's avatar unknown

Bugfix, handling null values.

parent b6e27f84
......@@ -61,7 +61,7 @@ sp_eval_func_item(THD *thd, Item *it, enum enum_field_types type)
}
/* QQ How do we do this? Is there some better way? */
if (type == MYSQL_TYPE_NULL)
if (type == MYSQL_TYPE_NULL || it->is_null())
it= new Item_null();
else
{
......
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