mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Bugfix, handling null values.
This commit is contained in:
parent
81c4cca686
commit
34d76c9319
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue