~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message.cc

Collapse strings used for table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
static const std::string MATCH_PARTIAL("PARTIAL");
76
76
static const std::string MATCH_SIMPLE("SIMPLE");
77
77
 
 
78
const static std::string STANDARD_STRING("STANDARD");
 
79
const static std::string TEMPORARY_STRING("TEMPORARY");
 
80
const static std::string INTERNAL_STRING("INTERNAL");
 
81
const static std::string FUNCTION_STRING("FUNCTION");
 
82
 
78
83
void update(drizzled::message::Schema &arg)
79
84
{
80
85
  arg.set_version(arg.version() + 1);
247
252
  return MATCH_SIMPLE;
248
253
}
249
254
 
 
255
const std::string &type(drizzled::message::Table::TableType type)
 
256
{
 
257
  switch (type)
 
258
  {
 
259
  case message::Table::STANDARD:
 
260
    return STANDARD_STRING;
 
261
  case message::Table::TEMPORARY:
 
262
    return TEMPORARY_STRING;
 
263
  case message::Table::INTERNAL:
 
264
    return INTERNAL_STRING;
 
265
  case message::Table::FUNCTION:
 
266
    return FUNCTION_STRING;
 
267
  }
 
268
 
 
269
  assert(0);
 
270
  return PROGRAM_ERROR;
 
271
}
 
272
 
250
273
#if 0
251
274
std::ostream& operator<<(std::ostream& output, const message::Transaction &message)
252
275