mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
BUG#858732: Wrong result with semijoin + loosescan + comma join
- Fix wrong loop bounds in setup_semijoin_dups_elimination()
This commit is contained in:
parent
9ea133fb3b
commit
4908d27b57
5 changed files with 93 additions and 1 deletions
|
|
@ -3834,7 +3834,7 @@ int setup_semijoin_dups_elimination(JOIN *join, ulonglong options,
|
|||
{
|
||||
/* We jump from the last table to the first one */
|
||||
tab->loosescan_match_tab= tab + pos->n_sj_tables - 1;
|
||||
for (uint j= i; j < pos->n_sj_tables; j++)
|
||||
for (uint j= i; j < i + pos->n_sj_tables; j++)
|
||||
join->join_tab[j].inside_loosescan_range= TRUE;
|
||||
|
||||
/* Calculate key length */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue