Commit 4c0ab891 authored by unknown's avatar unknown

sql_select.cc:

  Postfix for bug#22331.


sql/sql_select.cc:
  Postfix for bug#22331.
parent 1631f65d
......@@ -7621,7 +7621,8 @@ static COND* substitute_for_best_equal_field(COND *cond,
break;
}
}
if (!((Item_cond*)cond)->argument_list()->elements)
if (cond->type() == Item::COND_ITEM &&
!((Item_cond*)cond)->argument_list()->elements)
cond= new Item_int((int32)cond->val_bool());
}
......
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