mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed LP bug #892725.
A non-first execution of a prepared statement missed a call of the TABLE_LIST::process_index_hints() method in the code of the function setup_tables(). At some scenarios this could lead to the choice of a quite inefficient execution plan for the base query of the prepared statement.
This commit is contained in:
@ -7864,6 +7864,8 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
|
||||
table_list->table->map= table_list->map_exec;
|
||||
table_list->table->maybe_null= table_list->maybe_null_exec;
|
||||
table_list->table->pos_in_table_list= table_list;
|
||||
if (table_list->process_index_hints(table_list->table))
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
select_lex->leaf_tables.push_back(table_list);
|
||||
}
|
||||
|
Reference in New Issue
Block a user