1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Merge branch '10.6' into 10.11

This commit is contained in:
Oleksandr Byelkin
2024-10-29 15:24:38 +01:00
655 changed files with 8060 additions and 3541 deletions

View File

@ -1531,7 +1531,7 @@ public:
Then, ORDER/GROUP BY and Window Function code add columns that need to
be saved to be available in the post-group-by context. These extra columns
are added to the front, because this->all_fields points to the suffix of
are added to the front, because this->fields_list points to the suffix of
this list.
*/
List<Item> all_fields;
@ -2607,5 +2607,16 @@ void propagate_new_equalities(THD *thd, Item *cond,
COND_EQUAL *inherited,
bool *is_simplifiable_cond);
template<typename T> T prev_bits(T n_bits)
{
if (!n_bits)
return 0;
T tmp= ((T)1 << (n_bits - 1));
return (tmp - 1) | tmp;
}
// A wrapper for the above function:
#define PREV_BITS(type, A) prev_bits<type>(A)
bool dbug_user_var_equals_str(THD *thd, const char *name, const char *value);
#endif /* SQL_SELECT_INCLUDED */