~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/data_engine/function.cc

Fix bad directory usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
using namespace std;
27
27
using namespace drizzled;
28
28
 
29
 
static const string schema_name("data_dictionary");
30
 
static const string schema_name_prefix("./data_dictionary/");
31
 
 
32
29
Function::Function(const std::string &name_arg) :
33
30
  drizzled::plugin::StorageEngine(name_arg,
34
31
                                  HTON_ALTER_NOT_SUPPORTED |
113
110
                                        string &db, 
114
111
                                        set<string> &set_of_names)
115
112
{
116
 
  if (db.compare(schema_name))
117
 
    return;
118
 
 
119
113
  for (ToolMap::iterator it= table_map.begin();
120
114
       it != table_map.end();
121
115
       it++)
122
116
  {
123
117
    Tool *tool= (*it).second;
124
118
    
125
 
    if (db.find(tool->getName()))
 
119
    if (not db.compare(tool->getSchemaHome()))
126
120
    {
127
121
      set_of_names.insert(tool->getName());
128
122
    }