mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-19588 Wrong results from query, using left join.
This bug could happen when queries with nested outer joins were executed employing join buffers. At such an execution if the method JOIN_CACHE::join_records() is called when a join buffer has become full no 'first_unmatched' field should be cleaned up in the JOIN_TAB structure to which the join cache with this buffer is attached.
This commit is contained in:
@ -2150,7 +2150,8 @@ enum_nested_loop_state JOIN_CACHE::join_records(bool skip_last)
|
||||
}
|
||||
|
||||
finish:
|
||||
if (outer_join_first_inner)
|
||||
if (outer_join_first_inner &&
|
||||
join_tab->first_inner == join_tab->first_unmatched)
|
||||
{
|
||||
/*
|
||||
All null complemented rows have been already generated for all
|
||||
|
Reference in New Issue
Block a user