Commit 5da3a478 authored by unknown's avatar unknown

sql_select.cc:

  Afterfix for bug#17366: Unchecked Item_int results in server crash


sql/sql_select.cc:
  Afterfix for bug#17366: Unchecked Item_int results in server crash
parent 09f54a2e
...@@ -7157,7 +7157,7 @@ static COND* substitute_for_best_equal_field(COND *cond, ...@@ -7157,7 +7157,7 @@ static COND* substitute_for_best_equal_field(COND *cond,
// This occurs when eliminate_item_equal() founds that cond is // This occurs when eliminate_item_equal() founds that cond is
// always false and substitues it with Item_int 0. // always false and substitues it with Item_int 0.
// Due to this, value of item_equal will be 0, so just return it. // Due to this, value of item_equal will be 0, so just return it.
if (cond->type() != Item::ITEM_COND) if (cond->type() != Item::COND_ITEM)
break; break;
} }
} }
......
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