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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user