Fix Windows build failure (after manual merge from 5.1-bugteam).

This commit is contained in:
Alexander Nozdrin 2010-01-31 00:08:20 +03:00
parent 0da16c7c2a
commit 5a57e6bb45

View file

@ -553,7 +553,7 @@ JOIN::prepare(Item ***rref_pointer_array,
there. Such fields don't contain any data to sort.
*/
if (!real_order &&
(item->type() != Item::Item::FIELD_ITEM ||
(item->type() != Item::FIELD_ITEM ||
((Item_field *) item)->field->maybe_null() ||
((Item_field *) item)->field->sort_length()))
real_order= TRUE;