~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rename_table.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 23:44:48 UTC
  • mfrom: (2088.1.5 drizzle-build)
  • Revision ID: brian@tangent.org-20110117234448-0tt6rd6fxa3csdaf
Rollup of all changes for identifier/error

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
  plugin::StorageEngine *engine= NULL;
147
147
  message::table::shared_ptr table_proto;
148
148
 
149
 
  TableIdentifier old_identifier(ren_table->getSchemaName(), old_alias, message::Table::STANDARD);
 
149
  identifier::Table old_identifier(ren_table->getSchemaName(), old_alias, message::Table::STANDARD);
150
150
 
151
151
  if (plugin::StorageEngine::getTableDefinition(*session, old_identifier, table_proto) != EEXIST)
152
152
  {
156
156
 
157
157
  engine= plugin::StorageEngine::findByName(*session, table_proto->engine().name());
158
158
 
159
 
  TableIdentifier new_identifier(new_db, new_alias, message::Table::STANDARD);
 
159
  identifier::Table new_identifier(new_db, new_alias, message::Table::STANDARD);
160
160
  if (plugin::StorageEngine::doesTableExist(*session, new_identifier))
161
161
  {
162
162
    my_error(ER_TABLE_EXISTS_ERROR, MYF(0), new_alias);