mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
func_if.result, func_if.test:
Added a test case for bug #11142. item_cmpfunc.cc: Fixed bug #11142. Implementation of Item_func_nullif::is_null was corrected.
This commit is contained in:
@ -1161,9 +1161,7 @@ Item_func_nullif::val_str(String *str)
|
||||
bool
|
||||
Item_func_nullif::is_null()
|
||||
{
|
||||
if (!cmp.compare())
|
||||
return (null_value=1);
|
||||
return 0;
|
||||
return (null_value= (!cmp.compare() ? 1 : args[0]->null_value));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user