~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_delete.cc

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
    table->file->info(HA_STATUS_AUTO | HA_STATUS_NO_LOCK);
423
423
 
424
424
    session->close_temporary_table(table, false, false);    // Don't free share
425
 
    ha_create_table(session, share->normalized_path.str,
426
 
                    share->db.str, share->table_name.str, &create_info, 1,
427
 
                    NULL);
 
425
    plugin::StorageEngine::createTable(session, share->normalized_path.str,
 
426
                                       share->db.str, share->table_name.str, &create_info,
 
427
                                       true, NULL);
428
428
    // We don't need to call invalidate() because this table is not in cache
429
429
    if ((error= (int) !(session->open_temporary_table(share->path.str,
430
430
                                                      share->db.str,
447
447
    goto trunc_by_del;
448
448
 
449
449
  pthread_mutex_lock(&LOCK_open); /* Recreate table for truncate */
450
 
  error= ha_create_table(session, path, table_list->db, table_list->table_name,
451
 
                         &create_info, 1, NULL);
 
450
  error= plugin::StorageEngine::createTable(session, path, table_list->db, table_list->table_name,
 
451
                                            &create_info, true, NULL);
452
452
  pthread_mutex_unlock(&LOCK_open);
453
453
 
454
454
end: