~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rename.cc

  • Committer: Stewart Smith
  • Date: 2009-07-20 13:29:16 UTC
  • mto: (1093.1.29 captain)
  • mto: This revision was merged to the branch mainline in revision 1102.
  • Revision ID: stewart@flamingspork.com-20090720132916-34ve6x6tucawnntl
refactor ha_resolve_by_name to accept std::string instead of LEX_STRING

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
    return true;
176
176
  }
177
177
 
178
 
  LEX_STRING engine_name= { (char*)table_proto.engine().name().c_str(),
179
 
                            strlen(table_proto.engine().name().c_str()) };
180
 
  engine= ha_resolve_by_name(session, &engine_name);
 
178
  engine= ha_resolve_by_name(session, table_proto.engine().name());
181
179
 
182
180
  length= build_table_filename(path, sizeof(path),
183
181
                               new_db, new_alias, false);