~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Brian Aker
  • Date: 2008-11-25 16:51:19 UTC
  • Revision ID: brian@tangent.org-20081125165119-e0p27zl7jcto1see
Added 32bit system variable support

Show diffs side-by-side

added added

removed removed

Lines of Context:
434
434
  }
435
435
};
436
436
 
 
437
class sys_var_session_uint32_t :public sys_var_session
 
438
{
 
439
  sys_check_func check_func;
 
440
public:
 
441
  uint32_t SV::*offset;
 
442
  sys_var_session_uint32_t(sys_var_chain *chain, const char *name_arg,
 
443
                           uint32_t SV::*offset_arg,
 
444
                           sys_check_func c_func= NULL,
 
445
                           sys_after_update_func au_func= NULL,
 
446
                           Binlog_status_enum binlog_status_arg= NOT_IN_BINLOG)
 
447
    :sys_var_session(name_arg, au_func, binlog_status_arg), check_func(c_func),
 
448
    offset(offset_arg)
 
449
  { chain_sys_var(chain); }
 
450
  bool check(Session *session, set_var *var);
 
451
  bool update(Session *session, set_var *var);
 
452
  void set_default(Session *session, enum_var_type type);
 
453
  SHOW_TYPE show_type() { return SHOW_LONG; }
 
454
  unsigned char *value_ptr(Session *session, enum_var_type type, LEX_STRING *base);
 
455
};
 
456
 
437
457
 
438
458
class sys_var_session_ulong :public sys_var_session
439
459
{