1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fix compile on Windows: use explicit casts between double and ha_rows.

This commit is contained in:
Sergei Petrunia
2022-09-28 17:34:22 +03:00
parent 5e651c9aea
commit 373f7ea72f
2 changed files with 13 additions and 13 deletions

View File

@@ -7374,7 +7374,7 @@ TRP_ROR_INTERSECT *get_best_ror_intersect(const PARAM *param, SEL_TREE *tree,
TRP_ROR_INTERSECT *trp= NULL;
if (min_cost + cmp_cost < read_time && (cpk_scan || best_num > 1))
{
double best_rows= double2rows(intersect_best->out_rows);
double best_rows= intersect_best->out_rows;
set_if_bigger(best_rows, 1);
if (!(trp= new (param->mem_root) TRP_ROR_INTERSECT))
DBUG_RETURN(NULL);
@@ -7386,8 +7386,8 @@ TRP_ROR_INTERSECT *get_best_ror_intersect(const PARAM *param, SEL_TREE *tree,
trp->last_scan= trp->first_scan + best_num;
trp->is_covering= intersect_best->is_covering;
trp->read_cost= min_cost + cmp_cost;
param->table->set_opt_range_condition_rows(best_rows);
trp->records= best_rows;
param->table->set_opt_range_condition_rows((ha_rows)best_rows);
trp->records= (ha_rows)best_rows;
trp->index_scan_costs= intersect_best->index_scan_costs;
trp->cpk_scan= cpk_scan;
DBUG_PRINT("info", ("Returning non-covering ROR-intersect plan:"