~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

  • Committer: Brian Aker
  • Date: 2010-12-11 17:34:45 UTC
  • mto: (1999.2.1 compare)
  • mto: This revision was merged to the branch mainline in revision 2001.
  • Revision ID: brian@tangent.org-20101211173445-prh4cyiqs99zxtra
Update code for testing identifiers/table/schema name correctness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
  return false;
333
333
}
334
334
 
335
 
bool Schema::doCanCreateTable(const drizzled::TableIdentifier &identifier)
336
 
{
337
 
 
338
 
  // This should always be the same value as GLOBAL_TEMPORARY_EXT but be
339
 
  // CASE_UP. --Brian 
340
 
  //
341
 
  // This needs to be done static in here for ordering reasons
342
 
  static SchemaIdentifier TEMPORARY_IDENTIFIER(".TEMPORARY");
343
 
  if (static_cast<const SchemaIdentifier&>(identifier) == TEMPORARY_IDENTIFIER)
344
 
  {
345
 
    return false;
346
 
  }
347
 
 
348
 
  return true;
349
 
}
350
 
 
351
335
void Schema::doGetTableIdentifiers(drizzled::CachedDirectory&,
352
336
                                   const drizzled::SchemaIdentifier&,
353
337
                                   drizzled::TableIdentifier::vector&)