1
0
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:
igor@igor-inspiron.creware.com
2005-06-13 11:24:26 -07:00
parent 36ff674468
commit 42271e4240
3 changed files with 55 additions and 3 deletions

View File

@ -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));
}
/*