diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2020-03-11 13:46:57 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2020-03-11 13:46:57 +0300 |
commit | b30446c85dbf0fd402a7833e1042bc13be7fece2 (patch) | |
tree | a41bc09333c9edb8c6e70b4f4bc8fa87b0faa4de /sql | |
parent | 1c40cb6877c35cceebe59384998df58264997d39 (diff) | |
download | mariadb-git-b30446c85dbf0fd402a7833e1042bc13be7fece2.tar.gz |
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.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 2358615affc..647dee80188 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -4267,7 +4267,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list, for (i= 0; i < join->table_count ; i++) if (double rr= join->best_positions[i].records_read) records= COST_MULT(records, rr); - ha_rows rows= records > HA_ROWS_MAX ? HA_ROWS_MAX : (ha_rows) records; + ha_rows rows= records > (double) HA_ROWS_MAX ? HA_ROWS_MAX : (ha_rows) records; set_if_smaller(rows, unit->select_limit_cnt); join->select_lex->increase_derived_records(rows); } |