~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/rename_table.cc

  • Committer: Brian Aker
  • Date: 2010-10-24 01:34:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1875.
  • Revision ID: brian@tangent.org-20101024013439-w9r8qtmt5ihnqtkd
Encapsulate table_name from table_list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
  const char *new_alias, *old_alias;
148
148
 
149
149
  {
150
 
    old_alias= ren_table->table_name;
 
150
    old_alias= ren_table->getTableName();
151
151
    new_alias= new_table_name;
152
152
  }
153
153
 
186
186
  for (ren_table= table_list; ren_table; ren_table= new_table->next_local)
187
187
  {
188
188
    new_table= ren_table->next_local;
189
 
    if (rename(ren_table, new_table->getSchemaName(), new_table->table_name, skip_error))
 
189
    if (rename(ren_table, new_table->getSchemaName(), new_table->getTableName(), skip_error))
190
190
      return ren_table;
191
191
  }
192
192
  return 0;