1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed LP bug #702301.

The function matching_cond should take into account that
there may be always false constant conjunctive conditions
that has not been evaluated yet,for example, conjunctive
conditions with non-correlated subqueries.
This commit is contained in:
Igor Babaev
2011-07-20 16:09:28 -07:00
parent 36be492dc0
commit 57f4965f36
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)
{