~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Brian Aker
  • Date: 2009-03-01 03:29:52 UTC
  • mfrom: (907.1.6 trunk-with-temporal)
  • Revision ID: brian@tangent.org-20090301032952-y210opnqxsfyhcla
Merge Jay's temporal

Show diffs side-by-side

added added

removed removed

Lines of Context:
794
794
  SHOW_TYPE show_type() { return SHOW_LONG; }
795
795
};
796
796
 
797
 
 
798
 
class sys_var_session_date_time_format :public sys_var_session
799
 
{
800
 
  DATE_TIME_FORMAT *SV::*offset;
801
 
  enum enum_drizzle_timestamp_type date_time_type;
802
 
public:
803
 
  sys_var_session_date_time_format(sys_var_chain *chain, const char *name_arg,
804
 
                               DATE_TIME_FORMAT *SV::*offset_arg,
805
 
                               enum enum_drizzle_timestamp_type date_time_type_arg)
806
 
    :sys_var_session(name_arg), offset(offset_arg),
807
 
    date_time_type(date_time_type_arg)
808
 
  { chain_sys_var(chain); }
809
 
  SHOW_TYPE show_type() { return SHOW_CHAR; }
810
 
  bool check_update_type(Item_result type)
811
 
  {
812
 
    return type != STRING_RESULT;               /* Only accept strings */
813
 
  }
814
 
  bool check_default(enum_var_type)
815
 
  { return 0; }
816
 
  bool check(Session *session, set_var *var);
817
 
  bool update(Session *session, set_var *var);
818
 
  void update2(Session *session, enum_var_type type, DATE_TIME_FORMAT *new_value);
819
 
  unsigned char *value_ptr(Session *session, enum_var_type type,
820
 
                           const LEX_STRING *base);
821
 
  void set_default(Session *session, enum_var_type type);
822
 
};
823
 
 
824
 
 
825
797
/* Variable that you can only read from */
826
798
 
827
799
class sys_var_readonly: public sys_var
1008
980
    uint64_t uint64_t_value;
1009
981
    size_t size_t_value;
1010
982
    plugin_ref plugin;
1011
 
    DATE_TIME_FORMAT *date_time_format;
1012
983
    Time_zone *time_zone;
1013
984
    MY_LOCALE *locale_value;
1014
985
  } save_result;