1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Removed Item::common_flags and replaced it with bit fields

This is to make the Item instances smaller
This commit is contained in:
Michael Widenius
2020-07-28 18:18:43 +03:00
committed by Sergei Golubchik
parent cd1782d26a
commit 00d13069dd
8 changed files with 41 additions and 45 deletions

View File

@ -18644,7 +18644,7 @@ bool Create_tmp_table::add_fields(THD *thd,
Item *item;
Field **tmp_from_field= m_from_field;
while (!m_with_cycle && (item= li++))
if (item->common_flags & IS_IN_WITH_CYCLE)
if (item->is_in_with_cycle)
{
m_with_cycle= true;
/*
@ -18662,8 +18662,7 @@ bool Create_tmp_table::add_fields(THD *thd,
uint uneven_delta;
current_counter= (((param->hidden_field_count < (fieldnr + 1)) &&
distinct_record_structure &&
(!m_with_cycle ||
(item->common_flags & IS_IN_WITH_CYCLE)))?
(!m_with_cycle || item->is_in_with_cycle)) ?
distinct :
other);
Item::Type type= item->type();
@ -27993,7 +27992,7 @@ void st_select_lex::print(THD *thd, String *str, enum_query_type query_type)
else
str->append(',');
if (is_subquery_function() && item->is_autogenerated_name())
if (is_subquery_function() && item->is_autogenerated_name)
{
/*
Do not print auto-generated aliases in subqueries. It has no purpose