1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-3801 Reproducible sub select join crash on 5.3.8 and 5.3.9

Properly drop all unused keys.
Patch by Igor Babaev.
This commit is contained in:
unknown
2012-11-19 15:38:27 +02:00
parent f716806a90
commit 60a7b05871
3 changed files with 132 additions and 1 deletions

View File

@@ -8982,7 +8982,7 @@ void JOIN::drop_unused_derived_keys()
JOIN_TAB *tab;
for (tab= first_linear_tab(this, WITHOUT_CONST_TABLES);
tab;
tab= next_linear_tab(this, tab, WITHOUT_BUSH_ROOTS))
tab= next_linear_tab(this, tab, WITH_BUSH_ROOTS))
{
TABLE *table=tab->table;