~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

after RENAME TABLE for an ARCHIVE table, the table proto stored in the ARZ header still has the old table name in it. We can easily fix this by returning the correct name from getTableDefinition and not having to then rewrite the ARZ header.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
    free(proto_string);
222
222
  }
223
223
 
 
224
  /* We set the name from what we've asked for as in RENAME TABLE for ARCHIVE
 
225
     we do not rewrite the table proto (as it's wedged in the file header)
 
226
  */
 
227
  table_proto.set_schema(identifier.getSchemaName());
 
228
  table_proto.set_name(identifier.getTableName());
 
229
 
224
230
  return error;
225
231
}
226
232