From f3ce9edaf9414fed9dc43f33cef4b275836ba4ef Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Thu, 24 Jan 2019 17:15:46 +0300 Subject: [PATCH] Fix compilation on Windows --- sql/sql_select.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/sql_select.cc b/sql/sql_select.cc index d547ff31144..1478dd93af4 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -27071,7 +27071,8 @@ test_if_cheaper_ordering(const JOIN_TAB *tab, ORDER *order, TABLE *table, // cond_selectivity=1 while refkey_rows_estimate has a better // estimate. refkey_rows_estimate= MY_MIN(refkey_rows_estimate, - table_records * table->cond_selectivity); + ha_rows(table_records * + table->cond_selectivity)); } /*