Bugfix, handling null values.

This commit is contained in:
pem@mysql.comhem.se 2003-11-17 13:33:47 +01:00
parent 81c4cca686
commit 34d76c9319

View file

@ -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
{