1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed LP bug #809206.

The bitmap of used tables must be evaluated for the select list of every
materialized derived table / view and saved in a dedicated field.
This is also applied to materialized subqueries.
This commit is contained in:
Igor Babaev
2011-07-12 23:47:35 -07:00
parent 419c20f10a
commit 5819dfcdf6
6 changed files with 113 additions and 12 deletions

View File

@ -767,6 +767,8 @@ public:
make_join_statistics)
*/
table_map outer_join;
/* Bitmap of tables used in the select list items */
table_map select_list_used_tables;
ha_rows send_records,found_records,examined_rows,row_limit, select_limit;
/**
Used to fetch no more than given amount of rows per one
@ -1134,6 +1136,7 @@ public:
return (table_map(1) << table_count) - 1;
}
void drop_unused_derived_keys();
inline void eval_select_list_used_tables();
/*
Return the table for which an index scan can be used to satisfy
the sort order needed by the ORDER BY/(implicit) GROUP BY clause