1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
This commit is contained in:
Igor Babaev
2011-07-20 16:49:36 -07:00
5 changed files with 73 additions and 11 deletions

View File

@@ -623,7 +623,7 @@ static bool matching_cond(bool max_fl, TABLE_REF *ref, KEY *keyinfo,
if (!(cond->used_tables() & field->table->map))
{
/* Condition doesn't restrict the used table */
DBUG_RETURN(TRUE);
DBUG_RETURN(!cond->const_item());
}
if (cond->type() == Item::COND_ITEM)
{