MySQL 8.0.39
Source Code Documentation
Enable_derived_merge_guard Class Reference

RAII class to temporarily enable derived_merge optimizer_switch for SHOW commands that are based on INFORMATION_SCHEMA system views. More...

#include <thd_raii.h>

Public Member Functions

 Enable_derived_merge_guard (THD *thd, bool enable_derived_merge)
 
 ~Enable_derived_merge_guard ()
 

Private Attributes

THD *const m_thd {nullptr}
 
bool m_derived_merge {false}
 
ulonglong m_save_optimizer_switch {0}
 

Detailed Description

RAII class to temporarily enable derived_merge optimizer_switch for SHOW commands that are based on INFORMATION_SCHEMA system views.

Constructor & Destructor Documentation

◆ Enable_derived_merge_guard()

Enable_derived_merge_guard::Enable_derived_merge_guard ( THD thd,
bool  enable_derived_merge 
)
inlineexplicit

◆ ~Enable_derived_merge_guard()

Enable_derived_merge_guard::~Enable_derived_merge_guard ( )
inline

Member Data Documentation

◆ m_derived_merge

bool Enable_derived_merge_guard::m_derived_merge {false}
private

◆ m_save_optimizer_switch

ulonglong Enable_derived_merge_guard::m_save_optimizer_switch {0}
private

◆ m_thd

THD* const Enable_derived_merge_guard::m_thd {nullptr}
private

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