~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/table.cc

  • Committer: Stewart Smith
  • Date: 2011-12-27 05:13:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2484.
  • Revision ID: stewart@flamingspork.com-20111227051355-ekct91ewmatpjx8i
ensure that Table::Key has the CATALOG along with SCHEMA and TABLE_NAME in it. Modify the (not so great) code in Table and TableShare to handle this too. This is one of the precursors for proper CATALOG support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
  }
222
222
 
223
223
  hash_value= util::insensitive_hash()(path);
224
 
  key.set(getKeySize(), getSchemaName(), boost::to_lower_copy(std::string(getTableName())));
 
224
  key.set(getKeySize(), getCatalogName(), getSchemaName(), boost::to_lower_copy(std::string(getTableName())));
225
225
}
226
226
 
227
227
 
284
284
  message.set_schema(getSchemaName());
285
285
}
286
286
 
287
 
void Table::Key::set(size_t resize_arg, const std::string &a, const std::string &b)
 
287
  void Table::Key::set(size_t resize_arg, const std::string &a, const std::string &b, const std::string &c)
288
288
{
289
289
  key_buffer.resize(resize_arg);
290
290
 
291
291
  std::copy(a.begin(), a.end(), key_buffer.begin());
292
292
  std::copy(b.begin(), b.end(), key_buffer.begin() + a.length() + 1);
 
293
  std::copy(c.begin(), c.end(),
 
294
            key_buffer.begin() + a.length() + 1 + b.length() + 1);
293
295
 
294
296
  util::sensitive_hash hasher;
295
297
  hash_value= hasher(key_buffer);