~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/data_engine/dictionary.cc

Additional definitions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
  if (strcmp(path, "./data_dictionary/character_sets") == 0)
51
51
    return &character_sets;
 
52
  else if (strcmp(path, "./data_dictionary/collation_character_set_applicability") == 0)
 
53
    return &collation_character_set_applicability;
52
54
  else if (strcmp(path, "./data_dictionary/collations") == 0)
53
55
    return &collations;
54
 
  else if (strcmp(path, "./data_dictionary/collation_character_set_applicability") == 0)
55
 
    return &collation_character_set_applicability;
56
 
  else if (strcmp(path, "./data_dictionary/processlist") == 0)
57
 
    return &processlist;
 
56
  else if (strcmp(path, "./data_dictionary/columns") == 0)
 
57
    return &columns;
 
58
  else if (strcmp(path, "./data_dictionary/global_status") == 0)
 
59
    return &global_status;
 
60
  else if (strcmp(path, "./data_dictionary/global_variables") == 0)
 
61
    return &global_variables;
 
62
  else if (strcmp(path, "./data_dictionary/key_column_usage") == 0)
 
63
    return &key_column_usage;
58
64
  else if (strcmp(path, "./data_dictionary/modules") == 0)
59
65
    return &modules;
60
66
  else if (strcmp(path, "./data_dictionary/plugins") == 0)
61
67
    return &plugins;
 
68
  else if (strcmp(path, "./data_dictionary/processlist") == 0)
 
69
    return &processlist;
 
70
  else if (strcmp(path, "./data_dictionary/statistics") == 0)
 
71
    return &statistics;
62
72
 
63
73
  fprintf(stderr, "\n %s\n", path);
64
74
  assert(path == NULL);
80
90
  {
81
91
    return ENOENT;
82
92
  }
 
93
  else if (strcmp(path, "./data_dictionary/character_sets") == 0)
 
94
  {
 
95
    if (table_proto)
 
96
    {
 
97
      character_sets.define(*table_proto);
 
98
    }
 
99
  }
83
100
  else if (strcmp(path, "./data_dictionary/collations") == 0)
84
101
  {
85
102
    if (table_proto)
94
111
      collation_character_set_applicability.define(*table_proto);
95
112
    }
96
113
  }
97
 
  else if (strcmp(path, "./data_dictionary/character_sets") == 0)
98
 
  {
99
 
    if (table_proto)
100
 
    {
101
 
      character_sets.define(*table_proto);
 
114
  else if (strcmp(path, "./data_dictionary/columns") == 0)
 
115
  {
 
116
    if (table_proto)
 
117
    {
 
118
      columns.define(*table_proto);
 
119
    }
 
120
  }
 
121
  else if (strcmp(path, "./data_dictionary/global_status") == 0)
 
122
  {
 
123
    if (table_proto)
 
124
    {
 
125
      global_status.define(*table_proto);
 
126
    }
 
127
  }
 
128
  else if (strcmp(path, "./data_dictionary/global_variables") == 0)
 
129
  {
 
130
    if (table_proto)
 
131
    {
 
132
      global_variables.define(*table_proto);
 
133
    }
 
134
  }
 
135
  else if (strcmp(path, "./data_dictionary/key_column_usage") == 0)
 
136
  {
 
137
    if (table_proto)
 
138
    {
 
139
      key_column_usage.define(*table_proto);
 
140
    }
 
141
  }
 
142
  else if (strcmp(path, "./data_dictionary/modules") == 0)
 
143
  {
 
144
    if (table_proto)
 
145
    {
 
146
      modules.define(*table_proto);
102
147
    }
103
148
  }
104
149
  else if (strcmp(path, "./data_dictionary/processlist") == 0)
108
153
      processlist.define(*table_proto);
109
154
    }
110
155
  }
111
 
  else if (strcmp(path, "./data_dictionary/modules") == 0)
112
 
  {
113
 
    if (table_proto)
114
 
    {
115
 
      modules.define(*table_proto);
116
 
    }
117
 
  }
118
156
  else if (strcmp(path, "./data_dictionary/plugins") == 0)
119
157
  {
120
158
    if (table_proto)
121
159
      plugins.define(*table_proto);
122
160
  }
 
161
  else if (strcmp(path, "./data_dictionary/statistics") == 0)
 
162
  {
 
163
    if (table_proto)
 
164
    {
 
165
      statistics.define(*table_proto);
 
166
    }
 
167
  }
123
168
  else
124
169
  {
125
170
    return ENOENT;
139
184
  set_of_names.insert("CHARACTER_SETS");
140
185
  set_of_names.insert("COLLATIONS");
141
186
  set_of_names.insert("COLLATION_CHARACTER_SET_APPLICABILITY");
 
187
  set_of_names.insert("COLUMNS");
 
188
  set_of_names.insert("GLOBAL_STATUS");
 
189
  set_of_names.insert("GLOBAL_STATUS");
 
190
  set_of_names.insert("GLOBAL_VARIABLES");
 
191
  set_of_names.insert("GLOBAL_VARIABLES");
 
192
  set_of_names.insert("KEY_COLUMN_USAGE");
142
193
  set_of_names.insert("MODULES");
143
194
  set_of_names.insert("PLUGINS");
144
195
  set_of_names.insert("PROCESSLIST");
145
 
 
146
 
  (void)set_of_names;
 
196
  set_of_names.insert("REFERENTIAL_CONSTRAINTS");
 
197
  set_of_names.insert("SCHEMATA");
 
198
  set_of_names.insert("SESSION_STATUS");
 
199
  set_of_names.insert("SESSION_VARIABLES");
 
200
  set_of_names.insert("STATISTICS");
 
201
  set_of_names.insert("TABLES");
 
202
  set_of_names.insert("TABLE_CONSTRAINTS");
147
203
}
148
204
 
149
205