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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user