MySQL 8.4.0
Source Code Documentation
Sql_mode_parse_guard Class Reference

RAII class to temporarily turn off SQL modes that affect parsing of expressions. More...

#include <thd_raii.h>

Public Member Functions

 Sql_mode_parse_guard (THD *thd)
 
 ~Sql_mode_parse_guard ()
 

Private Attributes

THDm_thd
 
const sql_mode_t m_old_sql_mode
 

Detailed Description

RAII class to temporarily turn off SQL modes that affect parsing of expressions.

Can also be used when printing expressions even if it turns off more SQL modes than strictly necessary for it (these extra modes are harmless as they do not affect expression printing).

Constructor & Destructor Documentation

◆ Sql_mode_parse_guard()

Sql_mode_parse_guard::Sql_mode_parse_guard ( THD thd)
inlineexplicit

◆ ~Sql_mode_parse_guard()

Sql_mode_parse_guard::~Sql_mode_parse_guard ( )
inline

Member Data Documentation

◆ m_old_sql_mode

const sql_mode_t Sql_mode_parse_guard::m_old_sql_mode
private

◆ m_thd

THD* Sql_mode_parse_guard::m_thd
private

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