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:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user