mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fixed bug mdev-6292.
Avoided exponential recursive calls of JOIN_CACHE::join_records() in the case of non-nested outer joins. A different solution is required to resolve this performance problem for nested outer joins.
This commit is contained in:
@ -2087,7 +2087,7 @@ enum_nested_loop_state JOIN_CACHE::join_records(bool skip_last)
|
||||
goto finish;
|
||||
if (outer_join_first_inner)
|
||||
{
|
||||
if (next_cache)
|
||||
if (next_cache && join_tab != join_tab->last_inner)
|
||||
{
|
||||
/*
|
||||
Ensure that all matches for outer records from join buffer are to be
|
||||
|
Reference in New Issue
Block a user