~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sys_var.h

  • Committer: Monty Taylor
  • Date: 2011-01-11 03:35:19 UTC
  • mto: This revision was merged to the branch mainline in revision 2074.
  • Revision ID: mordred@inaugust.com-20110111033519-x141bdubt09jy0py
First step in getting that anonymous union out of set_var.

Show diffs side-by-side

added added

removed removed

Lines of Context:
468
468
 
469
469
  bool update(Session *, set_var *var)
470
470
  {
471
 
    value= var->save_result.uint32_t_value;
 
471
    value= uint32_t(var->getInteger());
472
472
    return false;
473
473
  }
474
474
 
516
516
template<>
517
517
inline bool sys_var_constrained_value<uint64_t>::update(Session *, set_var *var)
518
518
{
519
 
  value= var->save_result.uint64_t_value;
 
519
  value= var->getInteger();
520
520
  return false;
521
521
}
522
522
 
523
523
template<>
524
524
inline bool sys_var_constrained_value<uint32_t>::update(Session *, set_var *var)
525
525
{
526
 
  value= var->save_result.uint32_t_value;
 
526
  value= uint32_t(var->getInteger());
527
527
  return false;
528
528
}
529
529