mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-6209: Assertion `join->best_read < double(1.79769313486231570815e+308L ...
- Use floating-point division in selectivity calculations.
This commit is contained in:
@ -7349,7 +7349,7 @@ double table_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
|
||||
}
|
||||
keyparts++;
|
||||
}
|
||||
sel /= table->quick_rows[key] / table->stat_records();
|
||||
sel /= (double)table->quick_rows[key] / (double) table->stat_records();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user