MySQL 8.4.2
Source Code Documentation
Statement_runnable Class Reference

Execute one SQL statement in an isolated context. More...

#include <statement_runnable.h>

Inheritance diagram for Statement_runnable:
[legend]

Public Member Functions

 Statement_runnable (LEX_STRING sql_text)
 
bool execute_server_code (THD *thd) override
 Parse and execute a statement. More...
 
- Public Member Functions inherited from Server_runnable
virtual ~Server_runnable ()
 

Private Attributes

LEX_STRING m_sql_text
 

Detailed Description

Execute one SQL statement in an isolated context.

Allows to execute a SQL statement from within another statement. Supports even executing a SQL statement from within stored program.

Constructor & Destructor Documentation

◆ Statement_runnable()

Statement_runnable::Statement_runnable ( LEX_STRING  sql_text)

Member Function Documentation

◆ execute_server_code()

bool Statement_runnable::execute_server_code ( THD thd)
overridevirtual

Parse and execute a statement.

Does not prepare the query.

Allows to execute a statement from within another statement. Supports even executing a statement from within stored program. The main property of the implementation is that it does not affect the environment – i.e. you can run many executions without having to cleanup/reset THD in between.

Implements Server_runnable.

Member Data Documentation

◆ m_sql_text

LEX_STRING Statement_runnable::m_sql_text
private

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