~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Monty Taylor
  • Date: 2011-01-11 06:07:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2074.
  • Revision ID: mordred@inaugust.com-20110111060755-jf6l99lf1i51w8dm
Removed some guts from set_var.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
class set_var :
68
68
  public set_var_base
69
69
{
 
70
  uint64_t uint64_t_value;
70
71
  std::string str_value;
71
72
public:
72
73
  sys_var *var;
73
74
  Item *value;
74
75
  sql_var_t type;
75
 
  union
76
 
  {
77
 
    const CHARSET_INFO *charset;
78
 
    uint32_t uint32_t_value;
79
 
    uint64_t uint64_t_value;
80
 
    size_t size_t_value;
81
 
    plugin::StorageEngine *storage_engine;
82
 
    Time_zone *time_zone;
83
 
    MY_LOCALE *locale_value;
84
 
  } save_result;
85
76
  LEX_STRING base;                      /* for structs */
86
77
 
87
78
  set_var(sql_var_t type_arg, sys_var *var_arg,
94
85
 
95
86
  uint64_t getInteger()
96
87
  {
97
 
    return save_result.uint64_t_value;
 
88
    return uint64_t_value;
98
89
  }
99
90
 
100
91
};