MySQL 8.0.40
Source Code Documentation
PT_select_stmt Class Reference

#include <parse_tree_nodes.h>

Inheritance diagram for PT_select_stmt:
[legend]

Public Member Functions

 PT_select_stmt (enum_sql_command sql_command, PT_query_expression_body *qe)
 
 PT_select_stmt (PT_query_expression_body *qe, PT_into_destination *into=nullptr, bool has_trailing_locking_clauses=false)
 Creates a SELECT command. More...
 
Sql_cmdmake_cmd (THD *thd) override
 

Private Types

typedef Parse_tree_root super
 

Private Attributes

enum_sql_command m_sql_command
 
PT_query_expression_bodym_qe
 
PT_into_destinationm_into
 
const bool m_has_trailing_locking_clauses
 

Additional Inherited Members

- Protected Member Functions inherited from Parse_tree_root
virtual ~Parse_tree_root ()=default
 
 Parse_tree_root ()=default
 

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ PT_select_stmt() [1/2]

PT_select_stmt::PT_select_stmt ( enum_sql_command  sql_command,
PT_query_expression_body qe 
)
inline
Parameters
qeThe query expression.
sql_commandThe type of SQL command.

◆ PT_select_stmt() [2/2]

PT_select_stmt::PT_select_stmt ( PT_query_expression_body qe,
PT_into_destination into = nullptr,
bool  has_trailing_locking_clauses = false 
)
inlineexplicit

Creates a SELECT command.

Only SELECT commands can have into.

Parameters
qeThe query expression.
intoThe own INTO destination.
has_trailing_locking_clausesTrue if there are locking clauses (like FOR UPDATE) at the end of the statement.

Member Function Documentation

◆ make_cmd()

Sql_cmd * PT_select_stmt::make_cmd ( THD thd)
overridevirtual

Implements Parse_tree_root.

Member Data Documentation

◆ m_has_trailing_locking_clauses

const bool PT_select_stmt::m_has_trailing_locking_clauses
private

◆ m_into

PT_into_destination* PT_select_stmt::m_into
private

◆ m_qe

PT_query_expression_body* PT_select_stmt::m_qe
private

◆ m_sql_command

enum_sql_command PT_select_stmt::m_sql_command
private

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