mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-6453: Assertion `inited==NONE || (inited==RND && scan)' failed in handler::ha_rnd_init(bool)
with InnoDB, joins, AND/OR conditions The inited parameter handler is not initialised when we do a quick_select after a table scan.
This commit is contained in:
@ -18883,6 +18883,10 @@ test_if_quick_select(JOIN_TAB *tab)
|
||||
|
||||
delete tab->select->quick;
|
||||
tab->select->quick=0;
|
||||
|
||||
if (tab->table->file->inited != handler::NONE)
|
||||
tab->table->file->ha_index_or_rnd_end();
|
||||
|
||||
return tab->select->test_quick_select(tab->join->thd, tab->keys,
|
||||
(table_map) 0, HA_POS_ERROR, 0,
|
||||
FALSE);
|
||||
|
Reference in New Issue
Block a user