1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch '10.6' into 10.9

This commit is contained in:
Oleksandr Byelkin
2023-08-04 08:01:06 +02:00
858 changed files with 12277 additions and 6177 deletions

View File

@ -401,7 +401,6 @@ typedef struct st_join_table {
/* TRUE <=> it is prohibited to join this table using join buffer */
bool no_forced_join_cache;
uint used_join_cache_level;
ulong join_buffer_size_limit;
JOIN_CACHE *cache;
/*
Index condition for BKA access join
@ -551,14 +550,19 @@ typedef struct st_join_table {
void cleanup();
inline bool is_using_loose_index_scan()
{
const SQL_SELECT *sel= filesort ? filesort->select : select;
const SQL_SELECT *sel= get_sql_select();
return (sel && sel->quick &&
(sel->quick->get_type() == QUICK_SELECT_I::QS_TYPE_GROUP_MIN_MAX));
}
bool is_using_agg_loose_index_scan ()
{
const SQL_SELECT *sel= get_sql_select();
return (is_using_loose_index_scan() &&
((QUICK_GROUP_MIN_MAX_SELECT *)select->quick)->is_agg_distinct());
((QUICK_GROUP_MIN_MAX_SELECT *)sel->quick)->is_agg_distinct());
}
const SQL_SELECT *get_sql_select()
{
return filesort ? filesort->select : select;
}
bool is_inner_table_of_semi_join_with_first_match()
{
@ -2503,8 +2507,6 @@ class derived_handler;
class Pushdown_derived: public Sql_alloc
{
private:
bool is_analyze;
public:
TABLE_LIST *derived;
derived_handler *handler;