sql_select.cc:

Postfix for bug#22331.
This commit is contained in:
evgen@moonbone.local 2007-03-08 19:38:21 +03:00
parent 999c1cdcc1
commit 35e5925673

View File

@ -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());
}