There was an error while loading. Please reload this page.
1 parent 29ac245 commit 5cc149fCopy full SHA for 5cc149f
sql/item_cmpfunc.cc
@@ -2692,7 +2692,7 @@ Item_func_if::str_op(String *str)
2692
String *res=arg->val_str(str);
2693
if (res)
2694
res->set_charset(collation.collation);
2695
- if (null_value=arg->null_value)
+ if ((null_value=arg->null_value))
2696
res= NULL;
2697
return res;
2698
}
@@ -2704,7 +2704,7 @@ Item_func_if::decimal_op(my_decimal *decimal_value)
2704
DBUG_ASSERT(fixed == 1);
2705
Item *arg= args[0]->val_bool() ? args[1] : args[2];
2706
my_decimal *value= arg->val_decimal(decimal_value);
2707
- if (null_value= arg->null_value)
+ if ((null_value= arg->null_value))
2708
value= NULL;
2709
return value;
2710
0 commit comments