~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rename.cc

Merged in plugin-registration.  handlerton now == StorageEngine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
    new_alias= new_table_name;
170
170
  }
171
171
 
172
 
  handlerton *hton= NULL;
 
172
  StorageEngine *engine= NULL;
173
173
 
174
 
  if(ha_table_exists_in_engine(session, ren_table->db, old_alias, &hton)
 
174
  if(ha_table_exists_in_engine(session, ren_table->db, old_alias, &engine)
175
175
     != HA_ERR_TABLE_EXIST)
176
176
  {
177
177
    my_error(ER_NO_SUCH_TABLE, MYF(0), ren_table->db, old_alias);
185
185
    return(1);                  // This can't be skipped
186
186
  }
187
187
 
188
 
  rc= mysql_rename_table(hton,
 
188
  rc= mysql_rename_table(engine,
189
189
                         ren_table->db, old_alias,
190
190
                         new_db, new_alias, 0);
191
191
  if (rc && !skip_error)