~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/status_tool.cc

  • Committer: Stewart Smith
  • Date: 2010-07-27 00:49:32 UTC
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100727004932-basq3vx9szmmbswm
fix storing and manipulating foreign keys in the proto around ALTER TABLE, CREATE TABLE and ALTER TABLE ADD/DROP FOREIGN KEY. We also (mostly) emulate the naming of innodb foreign keys in the upper layer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
}
101
101
 
102
102
StatusTool::Generator::Generator(Field **arg, LoggingStats *in_logging_stats,
103
 
                                 vector<drizzle_show_var *> *in_all_status_vars, 
 
103
                                 vector<drizzle_show_var *> *all_status_vars, 
104
104
                                 bool inIsLocal) :
105
105
  TableFunction::Generator(arg),
106
106
  logging_stats(in_logging_stats),
107
107
  isLocal(inIsLocal)   
108
108
{
109
 
  all_status_vars_it= in_all_status_vars->begin();
110
 
  all_status_vars_end= in_all_status_vars->end();
 
109
  all_status_vars_it= all_status_vars->begin();
 
110
  all_status_vars_end= all_status_vars->end();
111
111
 
112
112
  status_var_to_display= NULL;
113
113
  if (isLocal)
175
175
      drizzle_show_var tmp;
176
176
 
177
177
      for (var= variables; var->type == SHOW_FUNC; var= &tmp)
178
 
        ((drizzle_show_var_func)((st_show_var_func_container *)var->value)->func)(&tmp, buff);
 
178
        ((mysql_show_var_func)((st_show_var_func_container *)var->value)->func)(&tmp, buff);
179
179
    }
180
180
 
181
181
    if (isWild(variables->name))