24#ifndef SQL_JOIN_OPTIMIZER_FIND_CONTAINED_SUBQUERIES
25#define SQL_JOIN_OPTIMIZER_FIND_CONTAINED_SUBQUERIES 1
57 std::optional<ContainedSubquery> subquery =
60 if (subquery.has_value()) {
61 func(subquery.value());
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
virtual std::optional< ContainedSubquery > get_contained_subquery(const Query_block *outer_query_block)
If this item represents a IN/ALL/ANY/comparison_operator subquery, return that (along with data on ho...
Definition: item.h:1262
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1156
Query_block * outer_query_block() const
Definition: sql_lex.h:1249
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
void FindContainedSubqueries(Item *condition, const Query_block *outer_query_block, Func &&func)
Definition: find_contained_subqueries.h:52
bool WalkItem(Item *item, enum_walk walk, T &&functor)
A helper class to give in a functor to Item::walk().
Definition: item.h:3592
File containing constants that can be used throughout the server.