MySQL 8.0.33
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:

Public Member Functions

bool finalize_query_expression ()
 Call upon parse completion. More...
 Parse_context (THD *thd, Query_block *sl)
bool is_top_level_union_all (Surrounding_context op)
 Determine if there is anything but UNION ALL above in m_stack. More...

Public Attributes

THD *const thd
 Current thread handler. More...
 Current MEM_ROOT. More...
 Current Query_block object. More...
mem_root_deque< QueryLevelm_stack
 Aids query term tree construction. More...

Detailed Description

Environment data for the contextualization phase.

Constructor & Destructor Documentation

◆ Parse_context()

Parse_context::Parse_context ( THD thd,
Query_block sl 

Member Function Documentation

◆ finalize_query_expression()

bool Parse_context::finalize_query_expression ( )

Call upon parse completion.

Set the parsed query expression's query term.

true on error, else false

For its construction, see'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: