mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 13:45:34 +02:00
Fixed LP bug #880724.
Do not create KEYUSEs for a materialized view over a constant table.
This commit is contained in:
parent
391c5db1fc
commit
c0a1bd1ed6
3 changed files with 76 additions and 1 deletions
|
|
@ -3827,7 +3827,9 @@ add_key_field(JOIN *join,
|
|||
uint optimize= 0;
|
||||
if (eq_func &&
|
||||
((join->is_allowed_hash_join_access() &&
|
||||
field->hash_join_is_possible()) ||
|
||||
field->hash_join_is_possible() &&
|
||||
!(field->table->pos_in_table_list->is_materialized_derived() &&
|
||||
field->table->created)) ||
|
||||
(field->table->pos_in_table_list->is_materialized_derived() &&
|
||||
!field->table->created)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue