summaryrefslogtreecommitdiff
path: root/sql/sql_join_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_join_cache.cc')
-rw-r--r--sql/sql_join_cache.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_join_cache.cc b/sql/sql_join_cache.cc
index fbbcf395980..68cb0c86adb 100644
--- a/sql/sql_join_cache.cc
+++ b/sql/sql_join_cache.cc
@@ -235,8 +235,13 @@ psergey-merge: was:
}
}
start_tab= tab;
+ /*
while (start_tab->bush_children && start_tab != join_tab)
start_tab++;
+ */
+ if (start_tab->bush_children)
+ start_tab= start_tab->bush_children->start;
+
tab= start_tab;
//tables= join_tab-tab;