~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 04:15:23 UTC
  • mto: (2088.1.3 merge)
  • mto: This revision was merged to the branch mainline in revision 2089.
  • Revision ID: brian@gir-3-20110117041523-o9ex94kfz1a6iqyw
Modify TableIdentifier to fit with the rest of the identifiers.

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);