~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/set_var.cc

  • Committer: Brian Aker
  • Date: 2008-07-13 19:39:24 UTC
  • Revision ID: brian@tangent.org-20080713193924-tf5yc33skcq224uf
More my_bool conversion. This time the set_var class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
                                         check_tx_isolation);
417
417
static sys_var_thd_ulonglong    sys_tmp_table_size(&vars, "tmp_table_size",
418
418
                                           &SV::tmp_table_size);
419
 
static sys_var_rbool_ptr  sys_timed_mutexes(&vars, "timed_mutexes", &timed_mutexes);
 
419
static sys_var_bool_ptr  sys_timed_mutexes(&vars, "timed_mutexes", &timed_mutexes);
420
420
static sys_var_const_str        sys_version(&vars, "version", server_version);
421
421
static sys_var_const_str        sys_version_comment(&vars, "version_comment",
422
422
                                            MYSQL_COMPILATION_COMMENT);
594
594
static sys_var_log_state sys_var_general_log(&vars, "general_log", &opt_log,
595
595
                                      QUERY_LOG_GENERAL);
596
596
/* Synonym of "general_log" for consistency with SHOW VARIABLES output */
597
 
static sys_var_log_state sys_var_log(&vars, "log", &opt_log,
598
 
                                      QUERY_LOG_GENERAL);
 
597
static sys_var_log_state sys_var_log(&vars, "log", &opt_log, QUERY_LOG_GENERAL);
599
598
static sys_var_log_state sys_var_slow_query_log(&vars, "slow_query_log", &opt_slow_log,
600
599
                                         QUERY_LOG_SLOW);
601
600
/* Synonym of "slow_query_log" for consistency with SHOW VARIABLES output */
1149
1148
 
1150
1149
bool sys_var_bool_ptr::update(THD *thd __attribute__((__unused__)), set_var *var)
1151
1150
{
1152
 
  *value= (my_bool) var->save_result.ulong_value;
 
1151
  *value= (bool) var->save_result.ulong_value;
1153
1152
  return 0;
1154
1153
}
1155
1154
 
1156
1155
 
1157
1156
void sys_var_bool_ptr::set_default(THD *thd __attribute__((__unused__)), enum_var_type type __attribute__((__unused__)))
1158
1157
{
1159
 
  *value= (my_bool) option_limits->def_value;
1160
 
}
1161
 
 
1162
 
bool sys_var_rbool_ptr::update(THD *thd __attribute__((__unused__)), set_var *var)
1163
 
{
1164
 
  *value= (bool) var->save_result.ulong_value;
1165
 
  return 0;
1166
 
}
1167
 
 
1168
 
 
1169
 
void sys_var_rbool_ptr::set_default(THD *thd __attribute__((__unused__)), enum_var_type type __attribute__((__unused__)))
1170
 
{
1171
1158
  *value= (bool) option_limits->def_value;
1172
1159
}
1173
1160