~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/function.cc

  • Committer: Brian Aker
  • Date: 2010-10-27 21:19:18 UTC
  • mto: This revision was merged to the branch mainline in revision 1886.
  • Revision ID: brian@tangent.org-20101027211918-1xnp5koya8stw35j
Additional documenation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
  return EEXIST;
71
71
}
72
72
 
73
 
void Function::doGetSchemaIdentifiers(SchemaIdentifier::vector& schemas)
 
73
void Function::doGetSchemaIdentifiers(SchemaIdentifiers& schemas)
74
74
{
75
75
  schemas.push_back(INFORMATION_SCHEMA_IDENTIFIER);
76
76
  schemas.push_back(DATA_DICTIONARY_IDENTIFIER);
77
77
}
78
78
 
79
 
bool Function::doGetSchemaDefinition(const SchemaIdentifier &schema_identifier, message::schema::shared_ptr &schema_message)
 
79
bool Function::doGetSchemaDefinition(const SchemaIdentifier &schema_identifier, message::SchemaPtr &schema_message)
80
80
{
81
81
  schema_message.reset(new message::Schema); // This should be fixed, we could just be using ones we built on startup.
82
82
 
124
124
 
125
125
void Function::doGetTableIdentifiers(drizzled::CachedDirectory&,
126
126
                                     const drizzled::SchemaIdentifier &schema_identifier,
127
 
                                     drizzled::TableIdentifier::vector &set_of_identifiers)
 
127
                                     drizzled::TableIdentifiers &set_of_identifiers)
128
128
{
129
 
  set<std::string> set_of_names;
 
129
  set<string> set_of_names;
130
130
  drizzled::plugin::TableFunction::getNames(schema_identifier.getSchemaName(), set_of_names);
131
131
 
132
 
  for (set<std::string>::iterator iter= set_of_names.begin(); iter != set_of_names.end(); iter++)
 
132
  for (set<string>::iterator iter= set_of_names.begin(); iter != set_of_names.end(); iter++)
133
133
  {
134
134
    set_of_identifiers.push_back(TableIdentifier(schema_identifier, *iter, drizzled::message::Table::FUNCTION));
135
135
  }