MySQL 9.0.0
Source Code Documentation
System_variable Class Reference

System variable derived from sys_var object. More...

#include <pfs_variable.h>

Public Member Functions

 System_variable ()
 CLASS System_variable. More...
 
 System_variable (THD *target_thd, const SHOW_VAR *show_var, enum_var_type query_scope)
 GLOBAL or SESSION system variable. More...
 
 System_variable (THD *target_thd, const SHOW_VAR *show_var)
 GLOBAL and SESSION system variable. More...
 
bool is_null () const
 

Public Attributes

const char * m_name
 
size_t m_name_length
 
char m_value_str [SHOW_VAR_FUNC_BUFF_SIZE+1]
 
size_t m_value_length
 
enum_mysql_show_type m_type
 
int m_scope
 
const CHARSET_INFOm_charset
 
enum_variable_source m_source
 
char m_path_str [SHOW_VAR_FUNC_BUFF_SIZE+1]
 
size_t m_path_length
 
char m_min_value_str [SHOW_VAR_FUNC_BUFF_SIZE+1]
 
size_t m_min_value_length
 
char m_max_value_str [SHOW_VAR_FUNC_BUFF_SIZE+1]
 
size_t m_max_value_length
 
ulonglong m_set_time
 
char m_set_user_str [USERNAME_LENGTH]
 
size_t m_set_user_str_length
 
char m_set_host_str [HOSTNAME_LENGTH]
 
size_t m_set_host_str_length
 

Private Member Functions

void init (THD *thd, const SHOW_VAR *show_var, enum_var_type query_scope)
 Get sys_var value from global or local source then convert to string. More...
 
void init (THD *thd, const SHOW_VAR *show_var)
 Get sys_var value from global/session and then convert to string. More...
 

Private Attributes

bool m_initialized
 

Detailed Description

System variable derived from sys_var object.

Constructor & Destructor Documentation

◆ System_variable() [1/3]

System_variable::System_variable ( )

CLASS System_variable.

Empty placeholder.

◆ System_variable() [2/3]

System_variable::System_variable ( THD target_thd,
const SHOW_VAR show_var,
enum_var_type  query_scope 
)

GLOBAL or SESSION system variable.

◆ System_variable() [3/3]

System_variable::System_variable ( THD target_thd,
const SHOW_VAR show_var 
)

GLOBAL and SESSION system variable.

Member Function Documentation

◆ init() [1/2]

void System_variable::init ( THD thd,
const SHOW_VAR show_var 
)
private

Get sys_var value from global/session and then convert to string.

◆ init() [2/2]

void System_variable::init ( THD thd,
const SHOW_VAR show_var,
enum_var_type  query_scope 
)
private

Get sys_var value from global or local source then convert to string.

◆ is_null()

bool System_variable::is_null ( ) const
inline

Member Data Documentation

◆ m_charset

const CHARSET_INFO* System_variable::m_charset

◆ m_initialized

bool System_variable::m_initialized
private

◆ m_max_value_length

size_t System_variable::m_max_value_length

◆ m_max_value_str

char System_variable::m_max_value_str[SHOW_VAR_FUNC_BUFF_SIZE+1]

◆ m_min_value_length

size_t System_variable::m_min_value_length

◆ m_min_value_str

char System_variable::m_min_value_str[SHOW_VAR_FUNC_BUFF_SIZE+1]

◆ m_name

const char* System_variable::m_name

◆ m_name_length

size_t System_variable::m_name_length

◆ m_path_length

size_t System_variable::m_path_length

◆ m_path_str

char System_variable::m_path_str[SHOW_VAR_FUNC_BUFF_SIZE+1]

◆ m_scope

int System_variable::m_scope

◆ m_set_host_str

char System_variable::m_set_host_str[HOSTNAME_LENGTH]

◆ m_set_host_str_length

size_t System_variable::m_set_host_str_length

◆ m_set_time

ulonglong System_variable::m_set_time

◆ m_set_user_str

char System_variable::m_set_user_str[USERNAME_LENGTH]

◆ m_set_user_str_length

size_t System_variable::m_set_user_str_length

◆ m_source

enum_variable_source System_variable::m_source

◆ m_type

enum_mysql_show_type System_variable::m_type

◆ m_value_length

size_t System_variable::m_value_length

◆ m_value_str

char System_variable::m_value_str[SHOW_VAR_FUNC_BUFF_SIZE+1]

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