1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-406: ANALYZE $stmt

- Testcase for ANALYZE UNION
- Provide r_rows for union result.
This commit is contained in:
Sergei Petrunia
2014-06-03 19:04:59 +04:00
parent 5621aa3230
commit 917b22393f
3 changed files with 19 additions and 3 deletions

View File

@@ -27,6 +27,11 @@ public:
ha_rows r_rows; /* How many rows we've got after that */
ha_rows r_rows_after_table_cond; /* Rows after applying the table condition */
ha_rows r_rows_after_where; /* Rows after applying attached part of WHERE */
ha_rows get_avg_rows()
{
return r_scans ? round((double) r_rows / r_scans): 0;
}
};