1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Avoid using HA_POS_ERROR constant when passing around values of type double.

This is error-prone and causes warnings on Windows
This commit is contained in:
Sergei Petrunia
2017-10-03 16:05:24 +03:00
parent 325e071c11
commit ebc2f0dad3
2 changed files with 8 additions and 5 deletions

View File

@ -3752,7 +3752,10 @@ double get_column_avg_frequency(Field * field)
using the statistical data from the table column_stats.
@retval
The required estimate of the rows in the column range
- The required estimate of the rows in the column range
- If there is some kind of error, this function should return DBL_MAX (and
not HA_POS_ERROR as that is an integer constant).
*/
double get_column_range_cardinality(Field *field,