~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2010-03-03 23:42:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1321.
  • Revision ID: brian@gaz-20100303234214-wij7pzl4s5f8rx4p
Temporary fix for allowing engines to say "don't do this".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1581
1581
 
1582
1582
bool create_table_precheck(TableIdentifier &identifier)
1583
1583
{
1584
 
  if (strcmp(identifier.getDBName(), DRIZZLE_DATA_DICTIONARY) == 0)
 
1584
  if (not plugin::StorageEngine::canCreateTable(identifier))
1585
1585
  {
1586
 
    my_error(ER_DBACCESS_DENIED_ERROR, MYF(0), "", "", DRIZZLE_DATA_DICTIONARY);
 
1586
    my_error(ER_DBACCESS_DENIED_ERROR, MYF(0), "", "", identifier.getSchemaName());
1587
1587
    return true;
1588
1588
  }
1589
1589