~stewart/drizzle/remove-unused-row-type-in-table-message

« back to all changes in this revision

Viewing changes to plugin/tableprototester/tableprototester.cc

  • Committer: Stewart Smith
  • Date: 2010-07-20 16:35:49 UTC
  • mfrom: (1638.1.28 drizzle)
  • Revision ID: stewart@flamingspork.com-20100720163549-zgcsmroyt0njr92d
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
 
128
128
bool TableProtoTesterEngine::doDoesTableExist(Session&, const drizzled::TableIdentifier &identifier)
129
129
{
130
 
  if (strcmp(identifier.getPath().c_str(), "./test/t1") == 0)
131
 
    return true;
132
 
  if (strcmp(identifier.getPath().c_str(), "./test/too_many_enum_values") == 0)
133
 
    return true;
134
 
  if (strcmp(identifier.getPath().c_str(), "./test/invalid_table_collation") == 0)
 
130
  if (not identifier.getPath().compare("./test/t1"))
 
131
    return true;
 
132
  if (not identifier.getPath().compare("./test/too_many_enum_values"))
 
133
    return true;
 
134
  if (not identifier.getPath().compare("./test/invalid_table_collation"))
135
135
    return true;
136
136
 
137
137
  return false;
248
248
                                                 const drizzled::TableIdentifier &identifier,
249
249
                                                 drizzled::message::Table &table_proto)
250
250
{
251
 
  if (strcmp(identifier.getPath().c_str(), "./test/t1") == 0)
 
251
  if (not identifier.getPath().compare("./test/t1"))
252
252
  {
253
253
    fill_table1(table_proto);
254
254
    return EEXIST;
255
255
  }
256
 
  else if (strcmp(identifier.getPath().c_str(), "./test/too_many_enum_values")==0)
 
256
  else if (not identifier.getPath().compare("./test/too_many_enum_values"))
257
257
  {
258
258
    fill_table_too_many_enum_values(table_proto);
259
259
    return EEXIST;
260
260
  }
261
 
  else if (strcmp(identifier.getPath().c_str(), "./test/invalid_table_collation")==0)
 
261
  else if (not identifier.getPath().compare("./test/invalid_table_collation"))
262
262
  {
263
263
    fill_table_invalid_table_collation(table_proto);
264
264
    return EEXIST;