mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed a typo that caused a wrong calculation of the selectivity for
pushed down condtions.
This commit is contained in:
@@ -6989,7 +6989,7 @@ double table_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
|
||||
if (s->quick && s->quick->index != MAX_KEY)
|
||||
{
|
||||
/* A range scan by index s->quick->index is used to access table s */
|
||||
sel*= table_records/table->quick_rows[s->quick->index];
|
||||
sel*= table->quick_rows[s->quick->index]/table_records;
|
||||
}
|
||||
else if (ref)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user