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:936
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:1369
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1163
Query_block * outer_query_block() const
Definition: sql_lex.h:1259
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
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:3761
File containing constants that can be used throughout the server.