1
0
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:
Sergey Petrunya
2014-05-05 13:24:54 +03:00
parent d130cef416
commit 504068b093
3 changed files with 24 additions and 1 deletions

View File

@ -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();
}
}