1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

sql_select.cc:

Afterfix for bug#17366: Unchecked Item_int results in server crash
This commit is contained in:
evgen@sunlight.local
2006-03-14 18:49:37 +03:00
parent 5866eb948a
commit a152cac2e7

View File

@@ -7157,7 +7157,7 @@ static COND* substitute_for_best_equal_field(COND *cond,
// This occurs when eliminate_item_equal() founds that cond is
// always false and substitues it with Item_int 0.
// 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;
}
}