~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2010-02-14 02:02:48 UTC
  • mfrom: (1273.13.64 fix_is)
  • Revision ID: brian@gaz-20100214020248-bhovaejhz9fmer3q
MergeĀ inĀ data_dictionary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
static void store_key_options(String *packet, Table *table, KEY *key_info);
74
74
 
75
 
int wild_case_compare(const CHARSET_INFO * const cs, const char *str,const char *wildstr)
 
75
 
 
76
int wild_case_compare(const CHARSET_INFO * const cs, const char *str, const char *wildstr)
76
77
{
77
78
  register int flag;
 
79
 
78
80
  while (*wildstr)
79
81
  {
80
82
    while (*wildstr && *wildstr != internal::wild_many && *wildstr != internal::wild_one)
115
117
      return (1);
116
118
    }
117
119
  }
 
120
 
118
121
  return (*str != '\0');
119
122
}
120
123
 
271
274
{
272
275
  message::Schema schema;
273
276
 
274
 
  if (!my_strcasecmp(system_charset_info, dbname,
275
 
                     INFORMATION_SCHEMA_NAME.c_str()))
 
277
  if (not my_strcasecmp(system_charset_info, dbname,
 
278
                        INFORMATION_SCHEMA_NAME.c_str()))
276
279
  {
277
280
    dbname= INFORMATION_SCHEMA_NAME.c_str();
278
281
  }
 
282
  else if (not my_strcasecmp(system_charset_info, dbname,
 
283
                             "data_dictionary"))
 
284
  {
 
285
    dbname= "data_dictionary";
 
286
  }
279
287
  else
280
288
  {
281
 
    int r= get_database_metadata(dbname, &schema);
282
 
    if(r < 0)
 
289
    int r= get_database_metadata(dbname, schema);
 
290
    if (r < 0)
283
291
      return true;
284
292
  }
285
293
 
729
737
  {}
730
738
};
731
739
 
732
 
void mysqld_list_processes(Session *session, const char *user, bool)
 
740
void mysqld_list_processes(Session *session, const char *user)
733
741
{
734
742
  Item *field;
735
743
  List<Item> field_list;
860
868
  return all_status_vars.front();
861
869
}
862
870
 
 
871
SHOW_VAR *getCommandStatusVars()
 
872
{
 
873
  SHOW_VAR *tmp= all_status_vars.front();
 
874
 
 
875
  for (; tmp->name; tmp++)
 
876
  {
 
877
    if (tmp->type == SHOW_ARRAY)
 
878
      return (SHOW_VAR *) tmp->value;
 
879
  }
 
880
 
 
881
  return NULL;
 
882
}
 
883
 
863
884
/*
864
885
  Adds an array of SHOW_VAR entries to the output of SHOW STATUS
865
886