Commit c0df79f9 authored by unknown's avatar unknown

Restore a bit of code accidently deleted during merge


sql/item_func.cc:
  Restore accidently deleted code
parent 54999b26
...@@ -2329,6 +2329,8 @@ longlong Item_func_field::val_int() ...@@ -2329,6 +2329,8 @@ longlong Item_func_field::val_int()
if (cmp_type == STRING_RESULT) if (cmp_type == STRING_RESULT)
{ {
String *field; String *field;
if (!(field= args[0]->val_str(&value)))
return 0;
for (uint i=1 ; i < arg_count ; i++) for (uint i=1 ; i < arg_count ; i++)
{ {
String *tmp_value=args[i]->val_str(&tmp); String *tmp_value=args[i]->val_str(&tmp);
......
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