mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fix #2093
Update after discussion with Monty sql/sql_select.cc: Wrong operation - deleted
This commit is contained in:
@ -1803,14 +1803,7 @@ update_ref_and_keys(THD *thd, DYNAMIC_ARRAY *keyuse,JOIN_TAB *join_tab,
|
||||
}
|
||||
/* fill keyuse with found key parts */
|
||||
for (; field != end ; field++)
|
||||
{
|
||||
add_key_part(keyuse,field);
|
||||
/* Mark that we can optimize LEFT JOIN */
|
||||
if (field->field->table == join_tab->table &&
|
||||
field->val->type() == Item::NULL_ITEM &&
|
||||
!field->field->real_maybe_null())
|
||||
join_tab->table->reginfo.not_exists_optimize=1;
|
||||
}
|
||||
}
|
||||
|
||||
if (thd->lex.select->ftfunc_list.elements)
|
||||
|
Reference in New Issue
Block a user