1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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
{