The world's most popular open source database
#include "mysql_priv.h"#include <mysql.h>#include "slave.h"#include <my_getopt.h>#include <thr_alarm.h>#include <myisam.h>#include <my_dir.h>#include "event_scheduler.h"Include dependency graph for set_var.cc:

Go to the source code of this file.
Classes | |
| struct | old_names_map_st |
Typedefs | |
| typedef old_names_map_st | my_old_conv |
Functions | |
| static int | sys_check_charset (THD *thd, set_var *var) |
| static bool | sys_update_charset (THD *thd, set_var *var) |
| static void | sys_set_default_charset (THD *thd, enum_var_type type) |
| static int | sys_check_ftb_syntax (THD *thd, set_var *var) |
| static bool | sys_update_ftb_syntax (THD *thd, set_var *var) |
| static void | sys_default_ftb_syntax (THD *thd, enum_var_type type) |
| static bool | sys_update_init_connect (THD *, set_var *) |
| static void | sys_default_init_connect (THD *, enum_var_type type) |
| static bool | sys_update_init_slave (THD *, set_var *) |
| static void | sys_default_init_slave (THD *, enum_var_type type) |
| static bool | set_option_bit (THD *thd, set_var *var) |
| static bool | set_option_autocommit (THD *thd, set_var *var) |
| static int | check_log_update (THD *thd, set_var *var) |
| static bool | set_log_update (THD *thd, set_var *var) |
| static int | check_pseudo_thread_id (THD *thd, set_var *var) |
| void | fix_binlog_format_after_update (THD *thd, enum_var_type type) |
| static void | fix_low_priority_updates (THD *thd, enum_var_type type) |
| static int | check_tx_isolation (THD *thd, set_var *var) |
| static void | fix_tx_isolation (THD *thd, enum_var_type type) |
| static int | check_completion_type (THD *thd, set_var *var) |
| static void | fix_completion_type (THD *thd, enum_var_type type) |
| static void | fix_net_read_timeout (THD *thd, enum_var_type type) |
| static void | fix_net_write_timeout (THD *thd, enum_var_type type) |
| static void | fix_net_retry_count (THD *thd, enum_var_type type) |
| static void | fix_max_join_size (THD *thd, enum_var_type type) |
| static void | fix_query_cache_size (THD *thd, enum_var_type type) |
| static void | fix_query_cache_min_res_unit (THD *thd, enum_var_type type) |
| static void | fix_myisam_max_sort_file_size (THD *thd, enum_var_type type) |
| static void | fix_max_binlog_size (THD *thd, enum_var_type type) |
| static void | fix_max_relay_log_size (THD *thd, enum_var_type type) |
| static void | fix_max_connections (THD *thd, enum_var_type type) |
| static int | check_max_delayed_threads (THD *thd, set_var *var) |
| static void | fix_thd_mem_root (THD *thd, enum_var_type type) |
| static void | fix_trans_mem_root (THD *thd, enum_var_type type) |
| static void | fix_server_id (THD *thd, enum_var_type type) |
| static KEY_CACHE * | create_key_cache (const char *name, uint length) |
| void | fix_sql_mode_var (THD *thd, enum_var_type type) |
| static byte * | get_error_count (THD *thd) |
| static byte * | get_warning_count (THD *thd) |
| static byte * | get_prepared_stmt_count (THD *thd) |
| static byte * | get_tmpdir (THD *thd) |
| static int | sys_check_log_path (THD *thd, set_var *var) |
| static bool | sys_update_general_log_path (THD *thd, set_var *var) |
| static void | sys_default_general_log_path (THD *thd, enum_var_type type) |
| static bool | sys_update_slow_log_path (THD *thd, set_var *var) |
| static void | sys_default_slow_log_path (THD *thd, enum_var_type type) |
| bool | update_sys_var_str (sys_var_str *var_str, rw_lock_t *var_mutex, set_var *var) |
| static void | fix_completion_type (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| static void | fix_net_read_timeout (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| static void | fix_net_write_timeout (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| static void | fix_net_retry_count (THD *thd __attribute__(unused), enum_var_type type __attribute__(unused)) |
| void | fix_delay_key_write (THD *thd, enum_var_type type) |
| CHARSET_INFO * | get_old_charset_by_name (const char *name) |
| KEY_CACHE * | get_key_cache (LEX_STRING *cache_name) |
| bool | update_sys_var_str_path (THD *thd, sys_var_str *var_str, set_var *var, const char *log_ext, bool log_state, uint log_type) |
| static struct my_option * | find_option (struct my_option *opt, const char *name) |
| static byte * | get_sys_var_length (const sys_var *var, uint *length, my_bool first) |
| void | set_var_init () |
| void | set_var_free () |
| sys_var * | find_sys_var (const char *str, uint length) |
| int | sql_set_variables (THD *thd, List< set_var_base > *var_list) |
| bool | not_all_support_one_shot (List< set_var_base > *var_list) |
| ulong | fix_sql_mode (ulong sql_mode) |
| gptr | find_named (I_List< NAMED_LIST > *list, const char *name, uint length, NAMED_LIST **found) |
| void | delete_elements (I_List< NAMED_LIST > *list, void(*free_element)(const char *name, gptr)) |
| KEY_CACHE * | get_or_create_key_cache (const char *name, uint length) |
| void | free_key_cache (const char *name, KEY_CACHE *key_cache) |
| bool | process_key_caches (int(*func)(const char *name, KEY_CACHE *)) |
Variables | |
| uint | innobase_flush_log_at_trx_commit |
| ulong | innobase_fast_shutdown |
| long | innobase_mirrored_log_groups |
| long | innobase_log_files_in_group |
| longlong | innobase_log_file_size |
| long | innobase_log_buffer_size |
| longlong | innobase_buffer_pool_size |
| long | innobase_additional_mem_pool_size |
| long | innobase_buffer_pool_awe_mem_mb |
| long | innobase_file_io_threads |
| long | innobase_lock_wait_timeout |
| long | innobase_force_recovery |
| long | innobase_open_files |
| char * | innobase_data_home_dir |
| char * | innobase_data_file_path |
| char * | innobase_log_group_home_dir |
| char * | innobase_log_arch_dir |
| char * | innobase_unix_file_flush_method |
| my_bool | innobase_log_archive |
| my_bool | innobase_use_doublewrite |
| my_bool | innobase_use_checksums |
| my_bool | innobase_file_per_table |
| my_bool | innobase_locks_unsafe_for_binlog |
| ulong | srv_max_buf_pool_modified_pct |
| ulong | srv_max_purge_lag |
| ulong | srv_auto_extend_increment |
| ulong | srv_n_spin_wait_rounds |
| ulong | srv_n_free_tickets_to_enter |
| ulong | srv_thread_sleep_delay |
| ulong | srv_thread_concurrency |
| ulong | srv_commit_concurrency |
| ulong | srv_flush_log_at_trx_commit |
| ulong | ndb_cache_check_time |
| ulong | ndb_extra_logging |
| static HASH | system_variable_hash |
| const char * | bool_type_names [] = { "OFF", "ON", NullS } |
| TYPELIB | bool_typelib |
| const char * | delay_key_write_type_names [] = { "OFF", "ON", "ALL", NullS } |
| TYPELIB | delay_key_write_typelib |
| sys_var_thd_ulong | sys_auto_increment_increment ("auto_increment_increment",&SV::auto_increment_increment) |
| sys_var_thd_ulong | sys_auto_increment_offset ("auto_increment_offset",&SV::auto_increment_offset) |
| sys_var_bool_ptr | sys_automatic_sp_privileges ("automatic_sp_privileges",&sp_automatic_privileges) |
| sys_var_const_str | sys_basedir ("basedir", mysql_home) |
| sys_var_long_ptr | sys_binlog_cache_size ("binlog_cache_size",&binlog_cache_size) |
| sys_var_thd_binlog_format | sys_binlog_format ("binlog_format",&SV::binlog_format) |
| sys_var_thd_ulong | sys_bulk_insert_buff_size ("bulk_insert_buffer_size",&SV::bulk_insert_buff_size) |
| sys_var_character_set_server | sys_character_set_server ("character_set_server") |
| sys_var_const_str | sys_charset_system ("character_set_system",(char *) my_charset_utf8_general_ci.name) |
| sys_var_character_set_database | sys_character_set_database ("character_set_database") |
| sys_var_character_set_client | sys_character_set_client ("character_set_client") |
| sys_var_character_set_connection | sys_character_set_connection ("character_set_connection") |
| sys_var_character_set_results | sys_character_set_results ("character_set_results") |
| sys_var_character_set_filesystem | sys_character_set_filesystem ("character_set_filesystem") |
| sys_var_thd_ulong | sys_completion_type ("completion_type",&SV::completion_type, check_completion_type, fix_completion_type) |
| sys_var_collation_connection | sys_collation_connection ("collation_connection") |
| sys_var_collation_database | sys_collation_database ("collation_database") |
| sys_var_collation_server | sys_collation_server ("collation_server") |
| sys_var_long_ptr | sys_concurrent_insert ("concurrent_insert",&myisam_concurrent_insert) |
| sys_var_long_ptr | sys_connect_timeout ("connect_timeout",&connect_timeout) |
| sys_var_const_str | sys_datadir ("datadir", mysql_real_data_home) |
| sys_var_thd_dbug | sys_dbug ("debug") |
| sys_var_enum | sys_delay_key_write ("delay_key_write",&delay_key_write_options,&delay_key_write_typelib, fix_delay_key_write) |
| sys_var_long_ptr | sys_delayed_insert_limit ("delayed_insert_limit",&delayed_insert_limit) |
| sys_var_long_ptr | sys_delayed_insert_timeout ("delayed_insert_timeout",&delayed_insert_timeout) |
| sys_var_long_ptr | sys_delayed_queue_size ("delayed_queue_size",&delayed_queue_size) |
| sys_var_event_scheduler | sys_event_scheduler ("event_scheduler") |
| sys_var_long_ptr | sys_expire_logs_days ("expire_logs_days",&expire_logs_days) |
| sys_var_bool_ptr | sys_flush ("flush",&myisam_flush) |
| sys_var_long_ptr | sys_flush_time ("flush_time",&flush_time) |
| sys_var_str | sys_ft_boolean_syntax ("ft_boolean_syntax", sys_check_ftb_syntax, sys_update_ftb_syntax, sys_default_ftb_syntax, ft_boolean_syntax) |
| sys_var_str | sys_init_connect ("init_connect", 0, sys_update_init_connect, sys_default_init_connect, 0) |
| sys_var_str | sys_init_slave ("init_slave", 0, sys_update_init_slave, sys_default_init_slave, 0) |
| sys_var_thd_ulong | sys_interactive_timeout ("interactive_timeout",&SV::net_interactive_timeout) |
| sys_var_thd_ulong | sys_join_buffer_size ("join_buffer_size",&SV::join_buff_size) |
| sys_var_key_buffer_size | sys_key_buffer_size ("key_buffer_size") |
| sys_var_key_cache_long | sys_key_cache_block_size ("key_cache_block_size", offsetof(KEY_CACHE, param_block_size)) |
| sys_var_key_cache_long | sys_key_cache_division_limit ("key_cache_division_limit", offsetof(KEY_CACHE, param_division_limit)) |
| sys_var_key_cache_long | sys_key_cache_age_threshold ("key_cache_age_threshold", offsetof(KEY_CACHE, param_age_threshold)) |
| sys_var_bool_ptr | sys_local_infile ("local_infile",&opt_local_infile) |
| sys_var_trust_routine_creators | sys_trust_routine_creators ("log_bin_trust_routine_creators",&trust_function_creators) |
| sys_var_bool_ptr | sys_trust_function_creators ("log_bin_trust_function_creators",&trust_function_creators) |
| sys_var_bool_ptr | sys_log_queries_not_using_indexes ("log_queries_not_using_indexes",&opt_log_queries_not_using_indexes) |
| sys_var_thd_ulong | sys_log_warnings ("log_warnings",&SV::log_warnings) |
| sys_var_thd_ulong | sys_long_query_time ("long_query_time",&SV::long_query_time) |
| sys_var_thd_bool | sys_low_priority_updates ("low_priority_updates",&SV::low_priority_updates, fix_low_priority_updates) |
| sys_var_thd_bool | sys_sql_low_priority_updates ("sql_low_priority_updates",&SV::low_priority_updates, fix_low_priority_updates) |
| sys_var_thd_ulong | sys_max_allowed_packet ("max_allowed_packet",&SV::max_allowed_packet) |
| sys_var_long_ptr | sys_max_binlog_cache_size ("max_binlog_cache_size",&max_binlog_cache_size) |
| sys_var_long_ptr | sys_max_binlog_size ("max_binlog_size",&max_binlog_size, fix_max_binlog_size) |
| sys_var_long_ptr | sys_max_connections ("max_connections",&max_connections, fix_max_connections) |
| sys_var_long_ptr | sys_max_connect_errors ("max_connect_errors",&max_connect_errors) |
| sys_var_thd_ulong | sys_max_insert_delayed_threads ("max_insert_delayed_threads",&SV::max_insert_delayed_threads, check_max_delayed_threads, fix_max_connections) |
| sys_var_thd_ulong | sys_max_delayed_threads ("max_delayed_threads",&SV::max_insert_delayed_threads, check_max_delayed_threads, fix_max_connections) |
| sys_var_thd_ulong | sys_max_error_count ("max_error_count",&SV::max_error_count) |
| sys_var_thd_ulong | sys_max_heap_table_size ("max_heap_table_size",&SV::max_heap_table_size) |
| sys_var_thd_ulong | sys_pseudo_thread_id ("pseudo_thread_id",&SV::pseudo_thread_id, check_pseudo_thread_id, 0) |
| sys_var_thd_ha_rows | sys_max_join_size ("max_join_size",&SV::max_join_size, fix_max_join_size) |
| sys_var_thd_ulong | sys_max_seeks_for_key ("max_seeks_for_key",&SV::max_seeks_for_key) |
| sys_var_thd_ulong | sys_max_length_for_sort_data ("max_length_for_sort_data",&SV::max_length_for_sort_data) |
| sys_var_thd_ha_rows | sys_sql_max_join_size ("sql_max_join_size",&SV::max_join_size, fix_max_join_size) |
| static sys_var_long_ptr_global | sys_max_prepared_stmt_count ("max_prepared_stmt_count",&max_prepared_stmt_count,&LOCK_prepared_stmt_count) |
| sys_var_long_ptr | sys_max_relay_log_size ("max_relay_log_size",&max_relay_log_size, fix_max_relay_log_size) |
| sys_var_thd_ulong | sys_max_sort_length ("max_sort_length",&SV::max_sort_length) |
| sys_var_thd_ulong | sys_max_sp_recursion_depth ("max_sp_recursion_depth",&SV::max_sp_recursion_depth) |
| sys_var_max_user_conn | sys_max_user_connections ("max_user_connections") |
| sys_var_thd_ulong | sys_max_tmp_tables ("max_tmp_tables",&SV::max_tmp_tables) |
| sys_var_long_ptr | sys_max_write_lock_count ("max_write_lock_count",&max_write_lock_count) |
| sys_var_thd_ulong | sys_multi_range_count ("multi_range_count",&SV::multi_range_count) |
| sys_var_long_ptr | sys_myisam_data_pointer_size ("myisam_data_pointer_size",&myisam_data_pointer_size) |
| sys_var_thd_ulonglong | sys_myisam_max_sort_file_size ("myisam_max_sort_file_size",&SV::myisam_max_sort_file_size, fix_myisam_max_sort_file_size, 1) |
| sys_var_thd_ulong | sys_myisam_repair_threads ("myisam_repair_threads",&SV::myisam_repair_threads) |
| sys_var_thd_ulong | sys_myisam_sort_buffer_size ("myisam_sort_buffer_size",&SV::myisam_sort_buff_size) |
| sys_var_bool_ptr | sys_myisam_use_mmap ("myisam_use_mmap",&opt_myisam_use_mmap) |
| sys_var_thd_enum | sys_myisam_stats_method ("myisam_stats_method",&SV::myisam_stats_method,&myisam_stats_method_typelib, NULL) |
| sys_var_thd_ulong | sys_net_buffer_length ("net_buffer_length",&SV::net_buffer_length) |
| sys_var_thd_ulong | sys_net_read_timeout ("net_read_timeout",&SV::net_read_timeout, 0, fix_net_read_timeout) |
| sys_var_thd_ulong | sys_net_write_timeout ("net_write_timeout",&SV::net_write_timeout, 0, fix_net_write_timeout) |
| sys_var_thd_ulong | sys_net_retry_count ("net_retry_count",&SV::net_retry_count, 0, fix_net_retry_count) |
| sys_var_thd_bool | sys_new_mode ("new",&SV::new_mode) |
| sys_var_thd_bool | sys_old_alter_table ("old_alter_table",&SV::old_alter_table) |
| sys_var_thd_bool | sys_old_passwords ("old_passwords",&SV::old_passwords) |
| sys_var_thd_ulong | sys_optimizer_prune_level ("optimizer_prune_level",&SV::optimizer_prune_level) |
| sys_var_thd_ulong | sys_optimizer_search_depth ("optimizer_search_depth",&SV::optimizer_search_depth) |
| sys_var_thd_ulong | sys_preload_buff_size ("preload_buffer_size",&SV::preload_buff_size) |
| sys_var_thd_ulong | sys_read_buff_size ("read_buffer_size",&SV::read_buff_size) |
| sys_var_bool_ptr | sys_readonly ("read_only",&opt_readonly) |
| sys_var_thd_ulong | sys_read_rnd_buff_size ("read_rnd_buffer_size",&SV::read_rnd_buff_size) |
| sys_var_thd_ulong | sys_div_precincrement ("div_precision_increment",&SV::div_precincrement) |
| sys_var_long_ptr | sys_rpl_recovery_rank ("rpl_recovery_rank",&rpl_recovery_rank) |
| sys_var_long_ptr | sys_query_cache_size ("query_cache_size",&query_cache_size, fix_query_cache_size) |
| sys_var_thd_ulong | sys_range_alloc_block_size ("range_alloc_block_size",&SV::range_alloc_block_size) |
| sys_var_thd_ulong | sys_query_alloc_block_size ("query_alloc_block_size",&SV::query_alloc_block_size, 0, fix_thd_mem_root) |
| sys_var_thd_ulong | sys_query_prealloc_size ("query_prealloc_size",&SV::query_prealloc_size, 0, fix_thd_mem_root) |
| sys_var_readonly | sys_tmpdir ("tmpdir", OPT_GLOBAL, SHOW_CHAR, get_tmpdir) |
| sys_var_thd_ulong | sys_trans_alloc_block_size ("transaction_alloc_block_size",&SV::trans_alloc_block_size, 0, fix_trans_mem_root) |
| sys_var_thd_ulong | sys_trans_prealloc_size ("transaction_prealloc_size",&SV::trans_prealloc_size, 0, fix_trans_mem_root) |
| sys_var_bool_ptr | sys_secure_auth ("secure_auth",&opt_secure_auth) |
| sys_var_long_ptr | sys_server_id ("server_id",&server_id, fix_server_id) |
| sys_var_bool_ptr | sys_slave_compressed_protocol ("slave_compressed_protocol",&opt_slave_compressed_protocol) |
| sys_var_long_ptr | sys_slow_launch_time ("slow_launch_time",&slow_launch_time) |
| sys_var_thd_ulong | sys_sort_buffer ("sort_buffer_size",&SV::sortbuff_size) |
| sys_var_thd_sql_mode | sys_sql_mode ("sql_mode",&SV::sql_mode) |
| sys_var_const_str | sys_ssl_ca ("ssl_ca", NULL) |
| sys_var_const_str | sys_ssl_capath ("ssl_capath", NULL) |
| sys_var_const_str | sys_ssl_cert ("ssl_cert", NULL) |
| sys_var_const_str | sys_ssl_cipher ("ssl_cipher", NULL) |
| sys_var_const_str | sys_ssl_key ("ssl_key", NULL) |
| sys_var_thd_enum | sys_updatable_views_with_limit ("updatable_views_with_limit",&SV::updatable_views_with_limit,&updatable_views_with_limit_typelib) |
| sys_var_thd_table_type | sys_table_type ("table_type",&SV::table_type) |
| sys_var_thd_storage_engine | sys_storage_engine ("storage_engine",&SV::table_type) |
| sys_var_bool_ptr | sys_sync_frm ("sync_frm",&opt_sync_frm) |
| sys_var_const_str | sys_system_time_zone ("system_time_zone", system_time_zone) |
| sys_var_long_ptr | sys_table_def_size ("table_definition_cache",&table_def_size) |
| sys_var_long_ptr | sys_table_cache_size ("table_open_cache",&table_cache_size) |
| sys_var_long_ptr | sys_table_lock_wait_timeout ("table_lock_wait_timeout",&table_lock_wait_timeout) |
| sys_var_long_ptr | sys_thread_cache_size ("thread_cache_size",&thread_cache_size) |
| sys_var_thd_enum | sys_tx_isolation ("tx_isolation",&SV::tx_isolation,&tx_isolation_typelib, fix_tx_isolation, check_tx_isolation) |
| sys_var_thd_ulong | sys_tmp_table_size ("tmp_table_size",&SV::tmp_table_size) |
| sys_var_bool_ptr | sys_timed_mutexes ("timed_mutexes",&timed_mutexes) |
| sys_var_const_str | sys_version ("version", server_version) |
| sys_var_const_str | sys_version_comment ("version_comment", MYSQL_COMPILATION_COMMENT) |
| sys_var_const_str | sys_version_compile_machine ("version_compile_machine", MACHINE_TYPE) |
| sys_var_const_str | sys_version_compile_os ("version_compile_os", SYSTEM_TYPE) |
| sys_var_thd_ulong | sys_net_wait_timeout ("wait_timeout",&SV::net_wait_timeout) |
| sys_var_thd_bool | sys_engine_condition_pushdown ("engine_condition_pushdown",&SV::engine_condition_pushdown) |
| sys_var_thd_ulong | sys_ndb_autoincrement_prefetch_sz ("ndb_autoincrement_prefetch_sz",&SV::ndb_autoincrement_prefetch_sz) |
| sys_var_thd_bool | sys_ndb_force_send ("ndb_force_send",&SV::ndb_force_send) |
| sys_var_thd_bool | sys_ndb_use_exact_count ("ndb_use_exact_count",&SV::ndb_use_exact_count) |
| sys_var_thd_bool | sys_ndb_use_transactions ("ndb_use_transactions",&SV::ndb_use_transactions) |
| sys_var_long_ptr | sys_ndb_cache_check_time ("ndb_cache_check_time",&ndb_cache_check_time) |
| sys_var_thd_bool | sys_ndb_index_stat_enable ("ndb_index_stat_enable",&SV::ndb_index_stat_enable) |
| sys_var_thd_ulong | sys_ndb_index_stat_cache_entries ("ndb_index_stat_cache_entries",&SV::ndb_index_stat_cache_entries) |
| sys_var_thd_ulong | sys_ndb_index_stat_update_freq ("ndb_index_stat_update_freq",&SV::ndb_index_stat_update_freq) |
| sys_var_long_ptr | sys_ndb_extra_logging ("ndb_extra_logging",&ndb_extra_logging) |
| sys_var_thd_bool | sys_ndb_use_copying_alter_table ("ndb_use_copying_alter_table",&SV::ndb_use_copying_alter_table) |
| sys_var_thd_date_time_format | sys_time_format ("time_format",&SV::time_format, MYSQL_TIMESTAMP_TIME) |
| sys_var_thd_date_time_format | sys_date_format ("date_format",&SV::date_format, MYSQL_TIMESTAMP_DATE) |
| sys_var_thd_date_time_format | sys_datetime_format ("datetime_format",&SV::datetime_format, MYSQL_TIMESTAMP_DATETIME) |
| sys_var_thd_bit | sys_autocommit ("autocommit", 0, set_option_autocommit, OPTION_NOT_AUTOCOMMIT, 1) |
| static sys_var_thd_bit | sys_big_tables ("big_tables", 0, set_option_bit, OPTION_BIG_TABLES) |
| static sys_var_thd_bit | sys_sql_big_tables ("sql_big_tables", 0, set_option_bit, OPTION_BIG_TABLES) |
| static sys_var_thd_bit | sys_big_selects ("sql_big_selects", 0, set_option_bit, OPTION_BIG_SELECTS) |
| static sys_var_thd_bit | sys_log_off ("sql_log_off", check_log_update, set_option_bit, OPTION_LOG_OFF) |
| static sys_var_thd_bit | sys_log_update ("sql_log_update", check_log_update, set_log_update, OPTION_BIN_LOG) |
| static sys_var_thd_bit | sys_log_binlog ("sql_log_bin", check_log_update, set_option_bit, OPTION_BIN_LOG) |
| static sys_var_thd_bit | sys_sql_warnings ("sql_warnings", 0, set_option_bit, OPTION_WARNINGS) |
| static sys_var_thd_bit | sys_sql_notes ("sql_notes", 0, set_option_bit, OPTION_SQL_NOTES) |
| static sys_var_thd_bit | sys_auto_is_null ("sql_auto_is_null", 0, set_option_bit, OPTION_AUTO_IS_NULL) |
| static sys_var_thd_bit | sys_safe_updates ("sql_safe_updates", 0, set_option_bit, OPTION_SAFE_UPDATES) |
| static sys_var_thd_bit | sys_buffer_results ("sql_buffer_result", 0, set_option_bit, OPTION_BUFFER_RESULT) |
| static sys_var_thd_bit | sys_quote_show_create ("sql_quote_show_create", 0, set_option_bit, OPTION_QUOTE_SHOW_CREATE) |
| static sys_var_thd_bit | sys_foreign_key_checks ("foreign_key_checks", 0, set_option_bit, OPTION_NO_FOREIGN_KEY_CHECKS, 1) |
| static sys_var_thd_bit | sys_unique_checks ("unique_checks", 0, set_option_bit, OPTION_RELAXED_UNIQUE_CHECKS, 1) |
| static sys_var_thd_ha_rows | sys_select_limit ("sql_select_limit",&SV::select_limit) |
| static sys_var_timestamp | sys_timestamp ("timestamp") |
| static sys_var_last_insert_id | sys_last_insert_id ("last_insert_id") |
| static sys_var_last_insert_id | sys_identity ("identity") |
| static sys_var_thd_lc_time_names | sys_lc_time_names ("lc_time_names") |
| static sys_var_insert_id | sys_insert_id ("insert_id") |
| static sys_var_readonly | sys_error_count ("error_count", OPT_SESSION, SHOW_LONG, get_error_count) |
| static sys_var_readonly | sys_warning_count ("warning_count", OPT_SESSION, SHOW_LONG, get_warning_count) |
| static sys_var_readonly | sys_prepared_stmt_count ("prepared_stmt_count", OPT_GLOBAL, SHOW_LONG, get_prepared_stmt_count) |
| static sys_var_rand_seed1 | sys_rand_seed1 ("rand_seed1") |
| static sys_var_rand_seed2 | sys_rand_seed2 ("rand_seed2") |
| static sys_var_thd_ulong | sys_default_week_format ("default_week_format",&SV::default_week_format) |
| sys_var_thd_ulong | sys_group_concat_max_len ("group_concat_max_len",&SV::group_concat_max_len) |
| sys_var_thd_time_zone | sys_time_zone ("time_zone") |
| sys_var_have_variable | sys_have_archive_db ("have_archive",&have_archive_db) |
| sys_var_have_variable | sys_have_blackhole_db ("have_blackhole_engine",&have_blackhole_db) |
| sys_var_have_variable | sys_have_compress ("have_compress",&have_compress) |
| sys_var_have_variable | sys_have_crypt ("have_crypt",&have_crypt) |
| sys_var_have_variable | sys_have_csv_db ("have_csv",&have_csv_db) |
| sys_var_have_variable | sys_have_dlopen ("have_dynamic_loading",&have_dlopen) |
| sys_var_have_variable | sys_have_example_db ("have_example_engine",&have_example_db) |
| sys_var_have_variable | sys_have_federated_db ("have_federated_engine",&have_federated_db) |
| sys_var_have_variable | sys_have_geometry ("have_geometry",&have_geometry) |
| sys_var_have_variable | sys_have_innodb ("have_innodb",&have_innodb) |
| sys_var_have_variable | sys_have_merge_db ("have_merge",&have_merge_db) |
| sys_var_have_variable | sys_have_ndbcluster ("have_ndbcluster",&have_ndbcluster) |
| sys_var_have_variable | sys_have_openssl ("have_openssl",&have_openssl) |
| sys_var_have_variable | sys_have_partition_db ("have_partitioning",&have_partition_db) |
| sys_var_have_variable | sys_have_query_cache ("have_query_cache",&have_query_cache) |
| sys_var_have_variable | sys_have_rtree_keys ("have_rtree_keys",&have_rtree_keys) |
| sys_var_have_variable | sys_have_symlink ("have_symlink",&have_symlink) |
| sys_var_have_variable | sys_have_row_based_replication ("have_row_based_replication",&have_row_based_replication) |
| sys_var_const_str | sys_license ("license", STRINGIFY_ARG(LICENSE)) |
| sys_var_log_state | sys_var_general_log ("general_log",&opt_log, QUERY_LOG_GENERAL) |
| sys_var_log_state | sys_var_slow_query_log ("slow_query_log",&opt_slow_log, QUERY_LOG_SLOW) |
| sys_var_str | sys_var_general_log_path ("general_log_file", sys_check_log_path, sys_update_general_log_path, sys_default_general_log_path, opt_logname) |
| sys_var_str | sys_var_slow_log_path ("slow_query_log_file", sys_check_log_path, sys_update_slow_log_path, sys_default_slow_log_path, opt_slow_logname) |
| sys_var_log_output | sys_var_log_output_state ("log_output",&log_output_options,&log_output_typelib, 0) |
| SHOW_VAR | init_vars [] |
| static my_old_conv | old_conv [] |
| CHARSET_INFO * | character_set_filesystem |
| LEX_STRING | default_key_cache_base = {(char *) "default", 7 } |
| static KEY_CACHE | zero_key_cache |
| typedef struct old_names_map_st my_old_conv |
| static int check_completion_type | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 1224 of file set_var.cc.
References buf, ER_WRONG_VALUE_FOR_VAR, llstr(), my_error(), MYF, sys_var::name, Item::val_int(), set_var::value, and set_var::var.
01225 { 01226 longlong val= var->value->val_int(); 01227 if (val < 0 || val > 2) 01228 { 01229 char buf[64]; 01230 my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), var->var->name, llstr(val, buf)); 01231 return 1; 01232 } 01233 return 0; 01234 }
Here is the call graph for this function:

| static int check_log_update | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 3089 of file set_var.cc.
References ER_SPECIFIC_ACCESS_DENIED_ERROR, my_error(), MYF, and SUPER_ACL.
03090 { 03091 #ifndef NO_EMBEDDED_ACCESS_CHECKS 03092 if (!(thd->security_ctx->master_access & SUPER_ACL)) 03093 { 03094 my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "SUPER"); 03095 return 1; 03096 } 03097 #endif 03098 return 0; 03099 }
Here is the call graph for this function:

| static int check_max_delayed_threads | ( | THD * | thd, | |
| set_var * | var | |||
| ) | [static] |
Definition at line 1396 of file set_var.cc.
References buf, ER_WRONG_VALUE_FOR_VAR, global_system_variables, llstr(), system_variables::max_insert_delayed_threads, my_error(), MYF, sys_var::name, OPT_GLOBAL, set_var::type, Item::val_int(), set_var::value, and set_var::var.
01397 { 01398 longlong val= var->value->val_int(); 01399 if (var->type != OPT_GLOBAL && val != 0 && 01400 val != (longlong) global_system_variables.max_insert_delayed_threads) 01401 { 01402 char buf[64]; 01403 my_error(ER_WRONG_VALUE_FOR_VAR,

