mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 5.2->5.3 in preparation for the release of mariadb-5.3.4-rc.
This commit is contained in:
@@ -623,7 +623,12 @@ static bool matching_cond(bool max_fl, TABLE_REF *ref, KEY *keyinfo,
|
||||
if (!cond)
|
||||
DBUG_RETURN(TRUE);
|
||||
Field *field= field_part->field;
|
||||
if (!(cond->used_tables() & field->table->map))
|
||||
if (cond->used_tables() & OUTER_REF_TABLE_BIT)
|
||||
{
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
if (!(cond->used_tables() & field->table->map) &&
|
||||
test(cond->used_tables() & ~PSEUDO_TABLE_BITS))
|
||||
{
|
||||
/* Condition doesn't restrict the used table */
|
||||
DBUG_RETURN(!cond->const_item());
|
||||
|
Reference in New Issue
Block a user