1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Corrected Evgen's fix for bug #45191.

Made sure that join buffers could be used for inner tables of
any semi-join when the first match strategy is employed.
This commit is contained in:
Igor Babaev
2010-03-05 10:54:48 -08:00
parent 3752aa72c9
commit 3ccc1d6b1e
5 changed files with 27 additions and 22 deletions

View File

@@ -321,8 +321,8 @@ typedef struct st_join_table {
}
bool check_only_first_match()
{
return last_sj_inner_tab == this ||
(first_inner && first_inner->last_inner == this &&
return is_inner_table_of_semi_join_with_first_match() ||
(is_inner_table_of_outer_join() &&
table->reginfo.not_exists_optimize);
}
bool is_last_inner_table()