MySQL 9.1.0
Source Code Documentation
|
Environment data for the contextualization phase. More...
#include <parse_tree_node_base.h>
Public Member Functions | |
bool | finalize_query_expression () |
Call upon parse completion. More... | |
Parse_context (THD *thd, Query_block *sl, bool show_parse_tree, Show_parse_tree *parent_show_parent_tree) | |
Parse_context (THD *thd_arg, Query_block *sl_arg, bool show_parse_tree=false) | |
Parse_context (THD *thd_arg, Query_block *sl_arg, Show_parse_tree *parent_show_parent_tree) | |
bool | is_top_level_union_all (Surrounding_context op) |
Determine if there is anything but UNION ALL above in m_stack. More... | |
Public Member Functions inherited from Parse_context_base | |
Parse_context_base (bool show_parse_tree=false, Show_parse_tree *parent_show_parent_tree=nullptr) | |
Public Attributes | |
THD *const | thd |
Current thread handler. More... | |
MEM_ROOT * | mem_root |
Current MEM_ROOT. More... | |
Query_block * | select |
Current Query_block object. More... | |
mem_root_deque< QueryLevel > | m_stack |
Aids query term tree construction. More... | |
Public Attributes inherited from Parse_context_base | |
std::unique_ptr< Show_parse_tree > | m_show_parse_tree = nullptr |
Environment data for the contextualization phase.
Parse_context::Parse_context | ( | THD * | thd, |
Query_block * | sl, | ||
bool | show_parse_tree, | ||
Show_parse_tree * | parent_show_parent_tree | ||
) |
|
inline |
|
inline |
bool Parse_context::finalize_query_expression | ( | ) |
Call upon parse completion.
Set the parsed query expression's query term.
For its construction, see parse_tree_nodes.cc's contextualize methods. Query_term is documented in query_term.h .
bool Parse_context::is_top_level_union_all | ( | Surrounding_context | op | ) |
Determine if there is anything but UNION ALL above in m_stack.
mem_root_deque<QueryLevel> Parse_context::m_stack |
Aids query term tree construction.
MEM_ROOT* Parse_context::mem_root |
Current MEM_ROOT.
Query_block* Parse_context::select |
Current Query_block object.
THD* const Parse_context::thd |
Current thread handler.