1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

BUG#858732: Wrong result with semijoin + loosescan + comma join

- Fix wrong loop bounds in setup_semijoin_dups_elimination()
This commit is contained in:
Sergey Petrunya
2011-09-26 13:56:09 +04:00
parent 9ea133fb3b
commit 4908d27b57
5 changed files with 93 additions and 1 deletions

View File

@@ -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 */