1
0
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:
Igor Babaev
2013-03-17 12:02:11 -07:00
parent fc1c8ffdad
commit aab3c9febc
3 changed files with 3 additions and 3 deletions

View File

@@ -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)
{