![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
#include "sql/server_component/mysql_system_variable_update_imp.h"#include <string.h>#include <string_view>#include <mysql/components/minimal_chassis.h>#include <mysql/components/service_implementation.h>#include <mysql/components/services/log_builtins.h>#include <mysql/components/services/mysql_string.h>#include <mysql/psi/mysql_rwlock.h>#include <sql/mysqld.h>#include <sql/set_var.h>#include <sql/sql_class.h>#include <sql/sql_lex.h>#include <sql/sql_list.h>#include <sql/sys_vars_shared.h>#include <sql_string.h>#include "sql/auth/auth_acls.h"#include "sql/auth/sql_security_ctx.h"#include "sql/item_func.h"#include "sql/server_component/set_variables_helper.h"#include "storing_auto_thd.h"Functions | |
| static enum_var_type | sysvar_type (const char *type_name) | 
| Return the system variable type given a type name.  More... | |
| static bool | prepare_thread_and_validate (Set_variables_helper &hlp, const char *variable_type, my_h_string variable_name, enum_var_type &var_type) | 
| This is an internal method that handles preparation tasks common for all system variable update service APIs:  More... | |
| static bool | common_system_variable_update_set (Set_variables_helper &hlp, enum_var_type var_type, my_h_string variable_base, my_h_string variable_name, Item *variable_value) | 
| Common system variable update code (used by different variable value types).  More... | |
      
  | 
  static | 
Common system variable update code (used by different variable value types).
| hlp | An execution context | 
| var_type | Enum type matching one of GLOBAL, SESSION, PERSIST, PERSIST_ONLY. | 
| variable_base | MySQL string of the variable prefix, NULL if none. | 
| variable_name | MySQL string of the variable name. | 
| variable_value | Pointer to Item object storing the value of the correct | 
| false | Success | 
| true | Failure, error set | 
      
  | 
  static | 
This is an internal method that handles preparation tasks common for all system variable update service APIs:
| hlp | Execution context handle. | 
| variable_type | One of GLOBAL, SESSION, PERSIST, PERSIST_ONLY. For any other value (including NULL), GLOBAL is assumed. SESSION is not supported for a temporary THD. | 
| variable_name | MySQL string of the variable name. | 
| var_type | Reference to output variable type enumeration (avoids parsing type multiple times). | 
| FALSE | Success | 
| TRUE | Failure, error set | 
      
  | 
  static | 
Return the system variable type given a type name.