~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-11-26 03:47:13 UTC
  • mto: (1228.4.1 push)
  • mto: This revision was merged to the branch mainline in revision 1234.
  • Revision ID: osullivan.padraig@gmail.com-20091126034713-qozlea5ib13ibqtp
Modified the fillTable method to not take a TableList parameter anymore. Instead we now take a Table
and an InfoSchemaTable parameter. This should allow us to get rid of the schema_table member of the
TableList class a bit easier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
  true  Error 
175
175
*/
176
176
 
177
 
bool list_open_tables(const char *db, const char *wild, bool(*func)(Table *table, open_table_list_st& open_list), Table *display)
 
177
bool list_open_tables(const char *db, 
 
178
                      const char *wild, 
 
179
                      bool(*func)(Table *table, 
 
180
                                  open_table_list_st& open_list,
 
181
                                  plugin::InfoSchemaTable *schema_table), 
 
182
                      Table *display,
 
183
                      plugin::InfoSchemaTable *schema_table)
178
184
{
179
185
  vector<open_table_list_st> open_list;
180
186
  vector<open_table_list_st>::iterator it;
225
231
 
226
232
  for (it= open_list.begin(); it < open_list.end(); it++)
227
233
  {
228
 
    if (func(display, *it))
 
234
    if (func(display, *it, schema_table))
229
235
      return true;
230
236
  }
231
237