24#ifndef XA_SQL_CMD_XA_RECOVER
25#define XA_SQL_CMD_XA_RECOVER
This class represents the XA RECOVER SQL statement which returns to a client a list of XID's prepared...
Definition: sql_xa_recover.h:38
bool m_print_xid_as_hex
Whether or not the XID should be printed in hexadecimal form.
Definition: sql_xa_recover.h:70
enum_sql_command sql_command_code() const override
Retrieves the SQL command code for this class, SQLCOM_XA_RECOVER.
Definition: sql_xa_recover.cc:36
bool check_xa_recover_privilege(THD *thd) const
Check if the current user has a privilege to perform XA RECOVER.
Definition: sql_xa_recover.cc:83
bool trans_xa_recover(THD *thd)
Return the list of XID's to a client, the same way SHOW commands do.
Definition: sql_xa_recover.cc:48
virtual ~Sql_cmd_xa_recover() override=default
Sql_cmd_xa_recover(bool print_xid_as_hex)
Class constructor.
Definition: sql_xa_recover.cc:33
bool execute(THD *thd) override
Executes the SQL command.
Definition: sql_xa_recover.cc:40
Representation of an SQL command.
Definition: sql_cmd.h:65
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
enum_sql_command
Definition: my_sqlcommand.h:46
Representation of an SQL command.