~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 11:15:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705111532-zod5hduzwcqe01ea
Use boost::to_lower

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
 
144
144
size_t Table::build_tmptable_filename(std::string &buffer)
145
145
{
146
 
  size_t tmpdir_length;
147
146
  ostringstream post_tmpdir_str;
148
147
 
149
148
  buffer.append(drizzle_tmpdir);
150
 
  tmpdir_length= buffer.length();
 
149
  size_t tmpdir_length= buffer.length();
151
150
 
152
151
  post_tmpdir_str << "/" << TMP_FILE_PREFIX << current_pid;
153
152
  post_tmpdir_str << pthread_self() << "-" << get_counter();
281
280
  hash_value= util::insensitive_hash()(path);
282
281
 
283
282
  std::string tb_name(getTableName());
284
 
  std::transform(tb_name.begin(), tb_name.end(), tb_name.begin(), ::tolower);
285
 
 
 
283
  boost::to_lower(tb_name);
286
284
  key.set(getKeySize(), getSchemaName(), tb_name);
287
285
}
288
286