~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Brian Aker
  • Date: 2008-11-16 02:03:36 UTC
  • mfrom: (584.2.8 drizzle-nofrm)
  • Revision ID: brian@tangent.org-20081116020336-89horp2vrgqoqv0f
Merge stewert

Show diffs side-by-side

added added

removed removed

Lines of Context:
957
957
      extension= strchr(file->name, '\0');
958
958
    if (find_type(extension, &deletable_extentions,1+2) <= 0)
959
959
    {
960
 
      if (find_type(extension, ha_known_exts(),1+2) <= 0)
961
 
        found_other_files++;
 
960
      /*
 
961
        ass ass ass.
 
962
 
 
963
        strange checking for magic extensions that are then deleted if
 
964
        not reg_ext (i.e. .frm).
 
965
 
 
966
        and (previously) we'd err out on drop database if files not matching
 
967
        engine ha_known_exts() or deletable_extensions were present.
 
968
 
 
969
        presumably this was to avoid deleting other user data... except if that
 
970
        data happened to be in files ending in .BAK, .opt or .TMD. *fun*
 
971
       */
 
972
      find_type(extension, ha_known_exts(),1+2);
962
973
      continue;
963
974
    }
964
975
    /* just for safety we use files_charset_info */
981
992
                            MYSQL50_TABLE_NAME_PREFIX_LENGTH +
982
993
                            strlen(file->name) + 1);
983
994
      table_list->alias= table_list->table_name;        // If lower_case_table_names=2
984
 
      table_list->internal_tmp_table= is_prefix(file->name, tmp_file_prefix);
 
995
      table_list->internal_tmp_table= is_prefix(file->name, TMP_FILE_PREFIX);
985
996
      /* Link into list */
986
997
      (*tot_list_next)= table_list;
987
998
      tot_list_next= &table_list->next_local;