1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

BUG#58985: Assertion tab->quick->index != 64 failed in make_join_select()

in sql_select.cc

Follow-up patch. Add sanity check for quick select when it is
decided that it should be used.
This commit is contained in:
Jorgen Loland
2010-12-17 13:52:39 +01:00
parent fca0f1dbb7
commit ef0a01abfc
2 changed files with 56 additions and 0 deletions

View File

@ -6504,6 +6504,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
((tab->type != JT_CONST && tab->type != JT_REF) ||
(uint)tab->ref.key == tab->quick->index))
{
DBUG_ASSERT(tab->quick->is_valid());
sel->quick=tab->quick; // Use value from get_quick_...
sel->quick_keys.clear_all();
sel->needed_reg.clear_all();