~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Brian Aker
  • Date: 2010-03-20 01:00:13 UTC
  • Revision ID: brian@gaz-20100320010013-zltu3fa01ufi34m4
Small corrections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
773
773
    {
774
774
      if (table->s->tmp_table != STANDARD_TABLE)
775
775
      {
776
 
        if (session->find_temporary_table(new_db, lower_case_table_name))
 
776
        TableIdentifier identifier(new_db, lower_case_table_name);
 
777
 
 
778
        if (session->find_temporary_table(identifier))
777
779
        {
778
780
          my_error(ER_TABLE_EXISTS_ERROR, MYF(0), lower_case_table_name);
779
781
          return true;
1056
1058
    session->close_temporary_table(table);
1057
1059
 
1058
1060
    /* Should pass the 'new_name' as we store table name in the cache */
1059
 
    if (new_table->rename_temporary_table(new_db, new_name))
 
1061
    TableIdentifier alter_identifier(new_db, new_name);
 
1062
    if (new_table->renameAlterTemporaryTable(alter_identifier))
1060
1063
      goto err1;
1061
1064
 
1062
1065
    goto end_temporary;