Comment 1 for bug 998321

Problem is that cached_field_type of Item_func_if appeared to be MYSQL_TYPE_NULL...