MySQL 9.1.0
Source Code Documentation
|
Execute one SQL statement in an isolated context. More...
#include <statement_runnable.h>
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 |
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.
Statement_runnable::Statement_runnable | ( | LEX_STRING | sql_text | ) |
|
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.
|
private |