~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_index.cc

  • Committer: Brian Aker
  • Date: 2010-11-27 03:55:30 UTC
  • mto: This revision was merged to the branch mainline in revision 1960.
  • Revision ID: brian@tangent.org-20101127035530-6qzxq0m9riiptpte
getSQLPath() modified to take a string so that we can const the table
identifier in most cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    TableIdentifier identifier(first_table->getSchemaName(), first_table->getTableName());
40
40
    if (plugin::StorageEngine::getTableDefinition(*session, identifier, original_table_message) != EEXIST)
41
41
    {
42
 
      my_error(ER_BAD_TABLE_ERROR, MYF(0), identifier.getSQLPath().c_str());
 
42
      std::string path;
 
43
      identifier.getSQLPath(path);
 
44
      my_error(ER_BAD_TABLE_ERROR, MYF(0), path.c_str());
43
45
      return true;
44
46
    }
45
47
  }