~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-05 12:26:58 UTC
  • mto: (2278.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2272.
  • Revision ID: olafvdspek@gmail.com-20110405122658-xxrvmobwwwwf3oct
Refactor Open_tables_state

Show diffs side-by-side

added added

removed removed

Lines of Context:
1162
1162
      if (new_table)
1163
1163
      {
1164
1164
        /* close_temporary_table() frees the new_table pointer. */
1165
 
        session->open_tables.close_temporary_table(new_table);
 
1165
        session->close_temporary_table(new_table);
1166
1166
      }
1167
1167
      else
1168
1168
      {
1206
1206
    }
1207
1207
 
1208
1208
    /* Remove link to old table and rename the new one */
1209
 
    session->open_tables.close_temporary_table(table);
 
1209
    session->close_temporary_table(table);
1210
1210
 
1211
1211
    /* Should pass the 'new_name' as we store table name in the cache */
1212
1212
    new_table->getMutableShare()->setIdentifier(new_table_identifier);