Skip to content

Commit b30446c

Browse files
committed
Fix compile warning:
It was: implicit conversion from 'ha_rows' (aka 'unsigned long long') to 'double' changes value from 18446744073709551615 to 18446744073709551616 Follow what JOIN::get_examined_rows() does for similar code.
1 parent 1c40cb6 commit b30446c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_select.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4267,7 +4267,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
42674267
for (i= 0; i < join->table_count ; i++)
42684268
if (double rr= join->best_positions[i].records_read)
42694269
records= COST_MULT(records, rr);
4270-
ha_rows rows= records > HA_ROWS_MAX ? HA_ROWS_MAX : (ha_rows) records;
4270+
ha_rows rows= records > (double) HA_ROWS_MAX ? HA_ROWS_MAX : (ha_rows) records;
42714271
set_if_smaller(rows, unit->select_limit_cnt);
42724272
join->select_lex->increase_derived_records(rows);
42734273
}

0 commit comments

Comments
 (0)