~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/csv/ha_tina.cc

  • Committer: Brian Aker
  • Date: 2010-03-24 00:04:32 UTC
  • Revision ID: brian@gaz-20100324000432-be308iquph3d9ytg
Update interface to use Identifiers directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
  uint32_t max_key_parts()     const { return 0; }
162
162
  uint32_t max_key_length()    const { return 0; }
163
163
  bool doDoesTableExist(Session& session, TableIdentifier &identifier);
164
 
  int doRenameTable(Session *, const char *from, const char *to);
 
164
  int doRenameTable(Session&, TableIdentifier &from, TableIdentifier &to);
165
165
};
166
166
 
167
167
 
168
 
int Tina::doRenameTable(Session *,
169
 
                        const char *from,
170
 
                        const char *to)
 
168
int Tina::doRenameTable(Session&,
 
169
                        TableIdentifier &from, TableIdentifier &to)
171
170
{
172
171
  int error= 0;
173
172
  for (const char **ext= bas_ext(); *ext ; ext++)
174
173
  {
175
 
    if (rename_file_ext(from, to, *ext))
 
174
    if (rename_file_ext(from.getPath().c_str(), to.getPath().c_str(), *ext))
176
175
    {
177
176
      if ((error=errno) != ENOENT)
178
177
        break;