MySQL 8.4.3
Source Code Documentation
Parse_context Struct Reference

Environment data for the contextualization phase. More...

#include <parse_tree_node_base.h>

Inheritance diagram for Parse_context:
[legend]

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_ROOTmem_root
 Current MEM_ROOT. More...
 
Query_blockselect
 Current Query_block object. More...
 
mem_root_deque< QueryLevelm_stack
 Aids query term tree construction. More...
 
- Public Attributes inherited from Parse_context_base
std::unique_ptr< Show_parse_treem_show_parse_tree = nullptr
 

Detailed Description

Environment data for the contextualization phase.

Constructor & Destructor Documentation

◆ Parse_context() [1/3]

Parse_context::Parse_context ( THD thd,
Query_block sl,
bool  show_parse_tree,
Show_parse_tree parent_show_parent_tree 
)

◆ Parse_context() [2/3]

Parse_context::Parse_context ( THD thd_arg,
Query_block sl_arg,
bool  show_parse_tree = false 
)
inline

◆ Parse_context() [3/3]

Parse_context::Parse_context ( THD thd_arg,
Query_block sl_arg,
Show_parse_tree parent_show_parent_tree 
)
inline

Member Function Documentation

◆ finalize_query_expression()

bool Parse_context::finalize_query_expression ( )

Call upon parse completion.

Set the parsed query expression's query term.

Returns
true on error, else false

For its construction, see parse_tree_nodes.cc's contextualize methods. Query_term is documented in query_term.h .

◆ is_top_level_union_all()

bool Parse_context::is_top_level_union_all ( Surrounding_context  op)

Determine if there is anything but UNION ALL above in m_stack.

Member Data Documentation

◆ m_stack

mem_root_deque<QueryLevel> Parse_context::m_stack

Aids query term tree construction.

◆ mem_root

MEM_ROOT* Parse_context::mem_root

Current MEM_ROOT.

◆ select

Query_block* Parse_context::select

Current Query_block object.

◆ thd

THD* const Parse_context::thd

Current thread handler.


The documentation for this struct was generated from the following files: