~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2010-04-01 15:54:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1434.
  • Revision ID: brian@gaz-20100401155457-kfv60i7mc3kwcjnd
Merge in work for fetching a list of table identifiers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
605
605
  doGetTableNames(schema_identifier, set_of_names);
606
606
}
607
607
 
 
608
void Session::doGetTableIdentifiers(SchemaIdentifier &schema_identifier,
 
609
                                    TableIdentifiers &set_of_identifiers)
 
610
{
 
611
  for (Table *table= temporary_tables ; table ; table= table->next)
 
612
  {
 
613
    if (schema_identifier.compare(table->s->getSchemaName()))
 
614
    {
 
615
      set_of_identifiers.push_back(TableIdentifier(table->getShare()->getSchemaName(),
 
616
                                                   table->getShare()->getTableName(),
 
617
                                                   table->getShare()->getPath()));
 
618
    }
 
619
  }
 
620
}
 
621
 
 
622
void Session::doGetTableIdentifiers(CachedDirectory &,
 
623
                                    SchemaIdentifier &schema_identifier,
 
624
                                    TableIdentifiers &set_of_identifiers)
 
625
{
 
626
  doGetTableIdentifiers(schema_identifier, set_of_identifiers);
 
627
}
 
628
 
608
629
bool Session::doDoesTableExist(TableIdentifier &identifier)
609
630
{
610
631
  for (Table *table= temporary_tables ; table ; table= table->next)