~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

Fixes from my bugs branch for uppercase bug and 32-bit Solaris size_t truncation

Show diffs side-by-side

added added

removed removed

Lines of Context:
784
784
    we only should turn into lowercase database/table part
785
785
    so start the process after homedirectory
786
786
  */
787
 
  my_casedn_str(files_charset_info, tmp_path + drizzle_data_home_len);
 
787
  if (strstr(tmp_path, drizzle_tmpdir) == tmp_path)
 
788
    my_casedn_str(files_charset_info, tmp_path + strlen(drizzle_tmpdir));
 
789
  else
 
790
    my_casedn_str(files_charset_info, tmp_path + drizzle_data_home_len);
788
791
 
789
792
  return tmp_path;
790
793
}