~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 18:27:33 UTC
  • Revision ID: brian@tangent.org-20080713182733-3u1et5nrmofi8a8n
my_bool cleanup.

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_bool_ptr  sys_timed_mutexes(&vars, "timed_mutexes",
420
 
                                    &timed_mutexes);
 
419
static sys_var_rbool_ptr  sys_timed_mutexes(&vars, "timed_mutexes", &timed_mutexes);
421
420
static sys_var_const_str        sys_version(&vars, "version", server_version);
422
421
static sys_var_const_str        sys_version_comment(&vars, "version_comment",
423
422
                                            MYSQL_COMPILATION_COMMENT);
1160
1159
  *value= (my_bool) option_limits->def_value;
1161
1160
}
1162
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
  *value= (bool) option_limits->def_value;
 
1172
}
 
1173
 
1163
1174
 
1164
1175
bool sys_var_enum::update(THD *thd __attribute__((__unused__)), set_var *var)
1165
1176
{