~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sys_var.cc

  • 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:
329
329
      my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), getName().c_str(), var->value->str_value.ptr());
330
330
    return res;
331
331
  }
332
 
  var->save_result.uint64_t_value= var->value->val_int();
 
332
  var->updateValue();
333
333
  return 0;
334
334
}
335
335
 
494
494
static bool get_unsigned64(Session *, set_var *var)
495
495
{
496
496
  if (var->value->unsigned_flag)
497
 
      var->save_result.uint64_t_value=(uint64_t) var->value->val_int();
 
497
      var->updateValue();
498
498
  else
499
499
  {
500
500
    int64_t v= var->value->val_int();
1425
1425
 
1426
1426
static int check_pseudo_thread_id(Session *, set_var *var)
1427
1427
{
1428
 
  var->save_result.uint64_t_value= var->value->val_int();
 
1428
  var->updateValue();
1429
1429
  return 0;
1430
1430
}
1431
1431