~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Brian Aker
  • Date: 2008-12-23 20:38:38 UTC
  • Revision ID: brian@tangent.org-20081223203838-cnnuqu2ybfygalq2
Removing dead code around one shot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
  const char *name;
81
81
 
82
82
  sys_after_update_func after_update;
83
 
  bool no_support_one_shot;
84
83
  sys_var(const char *name_arg, sys_after_update_func func= NULL,
85
84
          Binlog_status_enum binlog_status_arg= NOT_IN_BINLOG)
86
 
    :name(name_arg), after_update(func), no_support_one_shot(1),
 
85
    :name(name_arg), after_update(func),
87
86
    binlog_status(binlog_status_arg),
88
87
    m_allow_empty_value(true)
89
88
  {}
722
721
  sys_var_collation(const char *name_arg,
723
722
                    Binlog_status_enum binlog_status_arg= NOT_IN_BINLOG)
724
723
    :sys_var_session(name_arg, NULL, binlog_status_arg)
725
 
  {
726
 
    no_support_one_shot= 0;
727
 
  }
 
724
  { }
728
725
  bool check(Session *session, set_var *var);
729
726
  SHOW_TYPE show_type() { return SHOW_CHAR; }
730
727
  bool check_update_type(Item_result type)
742
739
  sys_var_character_set(const char *name_arg, bool is_nullable= 0,
743
740
                        Binlog_status_enum binlog_status_arg= NOT_IN_BINLOG)
744
741
    :sys_var_session(name_arg, NULL, binlog_status_arg), nullable(is_nullable)
745
 
  {
746
 
    /*
747
 
      In fact only almost all variables derived from sys_var_character_set
748
 
      support ONE_SHOT; character_set_results doesn't. But that's good enough.
749
 
    */
750
 
    no_support_one_shot= 0;
751
 
  }
 
742
  { }
752
743
  bool check(Session *session, set_var *var);
753
744
  SHOW_TYPE show_type() { return SHOW_CHAR; }
754
745
  bool check_update_type(Item_result type)
952
943
                        Binlog_status_enum binlog_status_arg= NOT_IN_BINLOG)
953
944
    :sys_var_session(name_arg, NULL, binlog_status_arg)
954
945
  {
955
 
    no_support_one_shot= 0;
956
946
    chain_sys_var(chain);
957
947
  }
958
948
  bool check(Session *session, set_var *var);
1023
1013
  virtual int check(Session *session)=0;        /* To check privileges etc. */
1024
1014
  virtual int update(Session *session)=0;       /* To set the value */
1025
1015
  /* light check for PS */
1026
 
  virtual bool no_support_one_shot() { return 1; }
1027
1016
};
1028
1017
 
1029
1018
 
1069
1058
  }
1070
1059
  int check(Session *session);
1071
1060
  int update(Session *session);
1072
 
  bool no_support_one_shot() { return var->no_support_one_shot; }
1073
1061
};
1074
1062
 
1075
1063