![]() |
MySQL 9.0.0
Source Code Documentation
|
Argument for walk method replace_scalar_subquery. More...
#include <item_subselect.h>
Public Member Functions | |
Scalar_subquery_replacement (Item_singlerow_subselect *target, TABLE *derived, Field *field, Query_block *select, bool add_coalesce, bool add_having_compensation, uint having_idx) | |
Public Attributes | |
Item_singlerow_subselect * | m_target |
< subquery to be replaced with ␓field from derived table More... | |
TABLE * | m_derived |
the replacement field More... | |
Field * | m_field |
The transformed query block. More... | |
Query_block * | m_outer_query_block |
The immediately surrounding query block. More... | |
Query_block * | m_inner_query_block |
True if subquery's selected item contains a COUNT aggregate. More... | |
bool | m_add_coalesce {false} |
Presence of HAVING clause in subquery: Only relevant if m_add_coalesce is true. More... | |
bool | m_add_having_compensation {false} |
Index of field holding value of having clause in derived table's list of fields. More... | |
uint | m_having_idx {0} |
Argument for walk method replace_scalar_subquery.
|
inline |
bool Item_singlerow_subselect::Scalar_subquery_replacement::m_add_coalesce {false} |
Presence of HAVING clause in subquery: Only relevant if m_add_coalesce
is true.
bool Item_singlerow_subselect::Scalar_subquery_replacement::m_add_having_compensation {false} |
Index of field holding value of having clause in derived table's list of fields.
Only relevant if m_add_coalesce
is true
TABLE* Item_singlerow_subselect::Scalar_subquery_replacement::m_derived |
the replacement field
Field* Item_singlerow_subselect::Scalar_subquery_replacement::m_field |
The transformed query block.
uint Item_singlerow_subselect::Scalar_subquery_replacement::m_having_idx {0} |
Query_block* Item_singlerow_subselect::Scalar_subquery_replacement::m_inner_query_block |
True if subquery's selected item contains a COUNT aggregate.
Query_block* Item_singlerow_subselect::Scalar_subquery_replacement::m_outer_query_block |
The immediately surrounding query block.
This will be the transformed block or a subquery of it
Item_singlerow_subselect* Item_singlerow_subselect::Scalar_subquery_replacement::m_target |
< subquery to be replaced with ␓field from derived table
The derived table of the transform