~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

Merge of show work (updates, a bit faster)

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
 
413
413
    TableIdentifier identifier(db, table->table_name, table->internal_tmp_table ? INTERNAL_TMP_TABLE : NO_TMP_TABLE);
414
414
 
415
 
    if ((table_type == NULL
416
 
          && (plugin::StorageEngine::getTableDefinition(*session,
417
 
                                                        identifier) != EEXIST)))
 
415
    if (table_type == NULL && not plugin::StorageEngine::doesTableExist(*session, identifier))
418
416
    {
419
417
      // Table was not found on disk and table can't be created from engine
420
418
      push_warning_printf(session, DRIZZLE_ERROR::WARN_LEVEL_NOTE,
423
421
    }
424
422
    else
425
423
    {
426
 
      error= plugin::StorageEngine::dropTable(*session,
427
 
                                              identifier,
428
 
                                              false);
 
424
      error= plugin::StorageEngine::dropTable(*session, identifier);
429
425
 
430
426
      if ((error == ENOENT || error == HA_ERR_NO_SUCH_TABLE))
431
427
      {