MySQL 9.1.0
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 (const POS &pos, enum_sql_command sql_command, PT_query_expression_body *qe)
 
 PT_select_stmt (const POS &pos, 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
 
std::string get_printable_parse_tree (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

- Public Attributes inherited from Parse_tree_root
POS m_pos
 Textual location of a token just parsed. More...
 
- Protected Member Functions inherited from Parse_tree_root
 Parse_tree_root ()=default
 
 Parse_tree_root (const POS &pos)
 
virtual ~Parse_tree_root ()=default
 

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ PT_select_stmt() [1/2]

PT_select_stmt::PT_select_stmt ( const POS pos,
enum_sql_command  sql_command,
PT_query_expression_body qe 
)
inline
Parameters
posPosition of this clause in the SQL statement.
qeThe query expression.
sql_commandThe type of SQL command.

◆ PT_select_stmt() [2/2]

PT_select_stmt::PT_select_stmt ( const POS pos,
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
posPosition of this clause in the SQL statement.
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

◆ get_printable_parse_tree()

std::string PT_select_stmt::get_printable_parse_tree ( THD thd)
overridevirtual

Reimplemented from Parse_tree_root.

◆ 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: