From ebc2f0dad3baf10277fa93965c6f5417d890ed71 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 3 Oct 2017 16:05:24 +0300 Subject: Avoid using HA_POS_ERROR constant when passing around values of type double. This is error-prone and causes warnings on Windows --- sql/sql_statistics.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sql/sql_statistics.cc') diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index ad71f634265..9c84729e1c2 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -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, -- cgit v1.2.1