diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-05-01 13:14:50 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-05-01 18:16:35 +0200 |
commit | b953bf7eb2cbebf74b1f8861f4c45a789d365f28 (patch) | |
tree | 851b58f43d0cbf47f6ddd065dcb1f17f29c1f4f6 /sql/sql_analyze_stmt.cc | |
parent | dabef66e66a48f2d5f4ca5fdfd1f9d927e935471 (diff) | |
download | mariadb-git-b953bf7eb2cbebf74b1f8861f4c45a789d365f28.tar.gz |
compilation fixes for VS 2019
Diffstat (limited to 'sql/sql_analyze_stmt.cc')
-rw-r--r-- | sql/sql_analyze_stmt.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_analyze_stmt.cc b/sql/sql_analyze_stmt.cc index 8e67267f6a0..9aed432c2b6 100644 --- a/sql/sql_analyze_stmt.cc +++ b/sql/sql_analyze_stmt.cc @@ -45,7 +45,7 @@ void Filesort_tracker::print_json_members(Json_writer *writer) else if (r_limit == 0) writer->add_str(varied_str); else - writer->add_ll((longlong) rint(r_limit)); + writer->add_ll(r_limit); } writer->add_member("r_used_priority_queue"); @@ -61,13 +61,13 @@ void Filesort_tracker::print_json_members(Json_writer *writer) if (!get_r_loops()) writer->add_member("r_output_rows").add_null(); else - writer->add_member("r_output_rows").add_ll((longlong) rint(r_output_rows / - get_r_loops())); + writer->add_member("r_output_rows").add_ll( + (longlong) rint((double)r_output_rows / get_r_loops())); if (sort_passes) { - writer->add_member("r_sort_passes").add_ll((longlong) rint(sort_passes / - get_r_loops())); + writer->add_member("r_sort_passes").add_ll( + (longlong) rint((double)sort_passes / get_r_loops())); } if (sort_buffer_size != 0) |