Commit 962042e7 authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi

Optimization of CASE bug fix

parent 5d60d8e5
...@@ -685,10 +685,9 @@ String *Item_func_case::val_str(String *str) ...@@ -685,10 +685,9 @@ String *Item_func_case::val_str(String *str)
null_value=1; null_value=1;
return 0; return 0;
} }
null_value= 0;
if (!(res=item->val_str(str))) if (!(res=item->val_str(str)))
null_value=1; null_value= 1;
else
null_value=item->null_value;
return res; return res;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment