MySQL 8.4.2
Source Code Documentation
PFS_query_text_handler_raii Class Reference

RAII class to set query text to PFS. More...

Public Member Functions

 PFS_query_text_handler_raii (THD *thd, std::string *new_query)
 
 ~PFS_query_text_handler_raii ()
 

Private Attributes

THDm_thd {nullptr}
 
LEX_CSTRING m_saved_query_string
 
String m_saved_rewritten_query
 
bool m_saved_safe_to_display {false}
 

Detailed Description

RAII class to set query text to PFS.

Constructor sets new query text for PFS events. New query text is rewritten if needed before setting it for PFS events.

Destructor restores original query string for PFS events.

Constructor & Destructor Documentation

◆ PFS_query_text_handler_raii()

PFS_query_text_handler_raii::PFS_query_text_handler_raii ( THD thd,
std::string *  new_query 
)
inline

◆ ~PFS_query_text_handler_raii()

PFS_query_text_handler_raii::~PFS_query_text_handler_raii ( )
inline

Member Data Documentation

◆ m_saved_query_string

LEX_CSTRING PFS_query_text_handler_raii::m_saved_query_string
private

◆ m_saved_rewritten_query

String PFS_query_text_handler_raii::m_saved_rewritten_query
private

◆ m_saved_safe_to_display

bool PFS_query_text_handler_raii::m_saved_safe_to_display {false}
private

◆ m_thd

THD* PFS_query_text_handler_raii::m_thd {nullptr}
private

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