~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/haildb/haildb_engine.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 18:15:41 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705181541-t5gdqo5ilg64jac6
Use boost::to_upper

Show diffs side-by-side

added added

removed removed

Lines of Context:
786
786
 
787
787
  if (strncmp(name, sys_prefix.c_str(), sys_prefix.length()) == 0)
788
788
  {
789
 
    string find_name(name+datadict_path.length());
790
 
    std::transform(find_name.begin(), find_name.end(), find_name.begin(), ::toupper);
791
 
    boost::unordered_set<string>::iterator iter= haildb_system_table_names.find(find_name);
 
789
    boost::unordered_set<string>::iterator iter= haildb_system_table_names.find(boost::to_upper_copy(string(name + datadict_path.length())));
792
790
    if (iter != haildb_system_table_names.end())
793
 
      return iter->c_str()+sys_table_prefix.length();
 
791
      return iter->c_str() + sys_table_prefix.length();
794
792
  }
795
793
 
796
794
  int slashes= 2;