diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2015-03-07 19:30:19 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2015-03-07 19:30:19 +0300 |
commit | 66ad265f3b58121d5a48c492dff79f48863df7c0 (patch) | |
tree | 4f4406098bb04379f57bcb94bc9684a4daf40144 /sql/sql_explain.h | |
parent | 143f5d9172647a43cdcf5c27b8a78f32c9f639c0 (diff) | |
download | mariadb-git-66ad265f3b58121d5a48c492dff79f48863df7c0.tar.gz |
MDEV-7674: ANALYZE shows r_rows=0
Change r_rows to be double
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r-- | sql/sql_explain.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_explain.h b/sql/sql_explain.h index c4bfa4d09bf..970edf7800d 100644 --- a/sql/sql_explain.h +++ b/sql/sql_explain.h @@ -44,9 +44,9 @@ public: bool has_scans() { return (r_scans != 0); } ha_rows get_loops() { return r_scans; } - ha_rows get_avg_rows() + double get_avg_rows() { - return r_scans ? (ha_rows)rint((double) r_rows / r_scans): 0; + return r_scans ? ((double)r_rows / r_scans): 0; } double get_filtered_after_where() |